47 trapArray[0] = 0;
48 }
49
50 public final int getLeft() {
51 return trapArray[1];
52 }
53
54 public final int getTop() {
55 return trapArray[2];
56 }
57
58 public final int getRight() {
59 return trapArray[3];
60 }
61
62 public final int getBottom() {
63 return trapArray[4];
64 }
65
66
67 private final int getTrapStartAddresse(int pos) {
68 return TRAP_START_INDEX + TRAP_SIZE * pos;
69 }
70
71 public final int getTop(int pos) {
72 return trapArray[getTrapStartAddresse(pos) + 0];
73 }
74
75 public final int getBottom(int pos) {
76 return trapArray[getTrapStartAddresse(pos) + 1];
77 }
78
79 public final int getP1XLeft(int pos) {
80 return trapArray[getTrapStartAddresse(pos) + 2];
81 }
82
83 public final int getP1YLeft(int pos) {
84 return trapArray[getTrapStartAddresse(pos) + 3];
85 }
86
87 public final int getP2XLeft(int pos) {
|
47 trapArray[0] = 0;
48 }
49
50 public final int getLeft() {
51 return trapArray[1];
52 }
53
54 public final int getTop() {
55 return trapArray[2];
56 }
57
58 public final int getRight() {
59 return trapArray[3];
60 }
61
62 public final int getBottom() {
63 return trapArray[4];
64 }
65
66
67 private int getTrapStartAddresse(int pos) {
68 return TRAP_START_INDEX + TRAP_SIZE * pos;
69 }
70
71 public final int getTop(int pos) {
72 return trapArray[getTrapStartAddresse(pos) + 0];
73 }
74
75 public final int getBottom(int pos) {
76 return trapArray[getTrapStartAddresse(pos) + 1];
77 }
78
79 public final int getP1XLeft(int pos) {
80 return trapArray[getTrapStartAddresse(pos) + 2];
81 }
82
83 public final int getP1YLeft(int pos) {
84 return trapArray[getTrapStartAddresse(pos) + 3];
85 }
86
87 public final int getP2XLeft(int pos) {
|