fixed some tests
This commit is contained in:
@@ -85,4 +85,13 @@ public void selectAnimationEnd(){
|
||||
logic.addNotification(new ActivePlayerNotification(logic.getGame().getActiveColor()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* this method is used to return the animationCounter
|
||||
*
|
||||
* @return int animationCounter
|
||||
*/
|
||||
public int getAnimationCounter(){
|
||||
return animationCounter;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ public void received(AnimationEndMessage msg, int from) {
|
||||
} else if (!isDied){
|
||||
LOGGER.log(System.Logger.Level.INFO, "Received AnimationEndMessage without the active player rolling a die.");
|
||||
} else if (!moveablePieces.isEmpty()) {
|
||||
System.out.println(!moveablePieces.isEmpty());
|
||||
this.logic.getServerSender().send(this.logic.getGame().getActivePlayerId(), new ChoosePieceStateMessage());
|
||||
this.rollDiceAutomaton.getTurnAutomaton().setCurrentState(this.rollDiceAutomaton.getTurnAutomaton().getChoosePieceState());
|
||||
} else {
|
||||
@@ -89,4 +90,13 @@ public void received(AnimationEndMessage msg, int from) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the movabelPieces
|
||||
*
|
||||
* @param moveablePieces
|
||||
*/
|
||||
public void setMoveablePieces(List<Piece> moveablePieces) {
|
||||
this.moveablePieces = moveablePieces;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user