Fix error
This commit is contained in:
@@ -62,8 +62,10 @@ public void received(PlayCardMessage msg) {
|
||||
public void received(ActivePlayerMessage msg) {
|
||||
logic.addNotification(new ActivePlayerNotification(msg.getColor()));
|
||||
logic.getGame().setActiveColor(msg.getColor());
|
||||
if(msg.getColor() == logic.getGame().getPlayers().get(logic.getOwnPlayerId()).getColor()) {
|
||||
parent.setState(parent.getTurn());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void received(MoveMessage msg) {
|
||||
|
||||
@@ -37,7 +37,7 @@ public void exit() {
|
||||
|
||||
@Override
|
||||
public void received(SelectPieceMessage msg) {
|
||||
LOGGER.log(System.Logger.Level.INFO, "fuck this");
|
||||
//TODO
|
||||
ArrayList<Piece> pieces = msg.getPieces().stream().map(piece -> logic.getGame().getPieceThroughUUID(piece.getUuid())).collect(Collectors.toCollection(ArrayList::new));
|
||||
parent.getSelectPiece().setPossiblePieces(pieces);
|
||||
LOGGER.log(System.Logger.Level.INFO, "Received " + msg.getPieces().size() + " pieces");
|
||||
|
||||
Reference in New Issue
Block a user