merge the new developmentbranch into the test branch #39
@@ -29,7 +29,7 @@ public Board() {
|
|||||||
} else if (i == 4 || i == 14 || i == 24 || i == 34) {
|
} else if (i == 4 || i == 14 || i == 24 || i == 34) {
|
||||||
infield[i] = new BonusNode();
|
infield[i] = new BonusNode();
|
||||||
} else {
|
} else {
|
||||||
infield[i] = new Node();
|
infield[i] = new Node(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,6 @@
|
|||||||
@Serializable
|
@Serializable
|
||||||
public class BonusNode extends Node {
|
public class BonusNode extends Node {
|
||||||
BonusNode(){
|
BonusNode(){
|
||||||
super();
|
super(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,6 @@
|
|||||||
@Serializable
|
@Serializable
|
||||||
public class HomeNode extends Node {
|
public class HomeNode extends Node {
|
||||||
public HomeNode() {
|
public HomeNode() {
|
||||||
super();
|
super(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,11 @@
|
|||||||
public class Node {
|
public class Node {
|
||||||
protected Piece occupant;
|
protected Piece occupant;
|
||||||
|
|
||||||
public Node(){
|
public Node(Piece piece){
|
||||||
|
occupant = piece;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Node(){
|
||||||
occupant = new Piece(Color.AIRFORCE, PieceState.WAITING);
|
occupant = new Piece(Color.AIRFORCE, PieceState.WAITING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,12 @@ public class StartNode extends Node {
|
|||||||
* @param color the color of the node
|
* @param color the color of the node
|
||||||
*/
|
*/
|
||||||
public StartNode(Color color) {
|
public StartNode(Color color) {
|
||||||
|
super(null);
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
private StartNode() {
|
private StartNode() {
|
||||||
|
super(null);
|
||||||
color = Color.NONE;
|
color = Color.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user