Merge Test to Development #8
@@ -60,7 +60,7 @@ private void initMap() {
|
||||
case cir -> addFigureToPlayerMap(assetToColor(BoardAsset.cir), assetOnMap);
|
||||
case marine -> addFigureToPlayerMap(assetToColor(BoardAsset.marine), assetOnMap);
|
||||
case node_normal, node_bonus, node_start ->
|
||||
infield.addLast(displayAndControl(assetOnMap, new NodeControl()));
|
||||
infield.add(displayAndControl(assetOnMap, new NodeControl()));
|
||||
default -> displayAsset(assetOnMap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,4 +136,18 @@ public int getIndexInHome(Piece piece) {
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns the homeNodes
|
||||
*
|
||||
* @return the homeNodes
|
||||
*/
|
||||
public boolean hasPieceInWaitingArea() {
|
||||
for (Piece piece : waitingArea) {
|
||||
if (piece != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user