-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlockPoint.java
103 lines (76 loc) · 2.17 KB
/
BlockPoint.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package ca.spiralmachines.limbscyberpunk;
import java.util.ArrayList;
public class BlockPoint {
public int absoluteIndexX;
public int absoluteIndexY;
private ArrayList<BlockPoint> adjacentBlocks;
private int blockIndex;
public int hBlocksToPlace;
private boolean isAlive;
boolean isBuilding = false;
public boolean isPath;
public int numberOfAdjacentWalls;
private int rowIndex;
public int vBlocksToPlace;
public int x;
public int y;
public BlockPoint(int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
this.x = paramInt1;
this.y = paramInt2;
this.rowIndex = paramInt3;
this.blockIndex = paramInt4;
this.isPath = true;
this.isAlive = true;
this.numberOfAdjacentWalls = 0;
this.vBlocksToPlace = 0;
this.hBlocksToPlace = 0;
this.absoluteIndexX = 0;
this.absoluteIndexY = 0;
}
public BlockPoint(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6) {
this.x = paramInt1;
this.y = paramInt2;
this.absoluteIndexY = paramInt6;
this.absoluteIndexX = paramInt5;
this.rowIndex = paramInt3;
this.blockIndex = paramInt4;
this.isPath = true;
this.isAlive = true;
this.numberOfAdjacentWalls = 0;
this.vBlocksToPlace = 0;
this.hBlocksToPlace = 0;
}
public ArrayList<BlockPoint> getAdjacentBlocks() {
return this.adjacentBlocks;
}
public int getBlockIndex() {
return this.blockIndex;
}
public int getRowIndex() {
return this.rowIndex;
}
public boolean isAlive() {
return this.isAlive;
}
public boolean isBuilding() {
return this.isBuilding;
}
public boolean isPath() {
return this.isPath;
}
public void setAdjacentBlocks(ArrayList<BlockPoint> paramArrayList) {
this.adjacentBlocks = paramArrayList;
}
public void setAlive(boolean paramBoolean) {
this.isAlive = paramBoolean;
}
public void setBlockIndex(int paramInt) {
this.blockIndex = paramInt;
}
public void setBuilding(boolean paramBoolean) {
this.isBuilding = paramBoolean;
}
public void setRowIndex(int paramInt) {
this.rowIndex = paramInt;
}
}