Fix error
This commit is contained in:
@@ -163,6 +163,9 @@ public void received(RequestMoveMessage msg, int from){
|
|||||||
|
|
||||||
Node targetNode = logic.getGame().getBoard().getInfield()[targIdx];
|
Node targetNode = logic.getGame().getBoard().getInfield()[targIdx];
|
||||||
|
|
||||||
|
LOGGER.log(System.Logger.Level.INFO,"Server : SelectPieceState: PieceState: end:"+piece.getState());
|
||||||
|
logic.getServerSender().broadcast(new MoveMessage(piece, homeMove, targIdx));
|
||||||
|
|
||||||
if(targetNode.isBonus()) {
|
if(targetNode.isBonus()) {
|
||||||
for (Player p : logic.getGame().getPlayersAsList()) {
|
for (Player p : logic.getGame().getPlayersAsList()) {
|
||||||
if(p.getColor() == logic.getGame().getActiveColor()) {
|
if(p.getColor() == logic.getGame().getActiveColor()) {
|
||||||
@@ -208,8 +211,6 @@ public void received(RequestMoveMessage msg, int from){
|
|||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
LOGGER.log(System.Logger.Level.INFO,"Server : SelectPieceState: PieceState: end:"+piece.getState());
|
|
||||||
logic.getServerSender().broadcast(new MoveMessage(piece, homeMove, targIdx));
|
|
||||||
System.out.println("Server changes from SelectPieceState to movePieceState");
|
System.out.println("Server changes from SelectPieceState to movePieceState");
|
||||||
this.choosePieceAutomaton.getTurnAutomaton().setCurrentState(this.choosePieceAutomaton.getTurnAutomaton().getMovePieceState());
|
this.choosePieceAutomaton.getTurnAutomaton().setCurrentState(this.choosePieceAutomaton.getTurnAutomaton().getMovePieceState());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user