merge the new developmentbranch into the test branch #39
@@ -41,8 +41,9 @@ public void received(SelectPieceMessage msg) {
|
||||
//TODO
|
||||
ArrayList<Piece> pieces = msg.getPieces().stream().map(piece -> logic.getGame().getPieceThroughUUID(piece.getUuid())).collect(Collectors.toCollection(ArrayList::new));
|
||||
parent.getSelectPiece().setPossiblePieces(pieces);
|
||||
ArrayList<UUID> listPiece = pieces.stream().map(Piece::getUuid).collect(Collectors.toCollection(ArrayList::new));
|
||||
LOGGER.log(System.Logger.Level.INFO, "Received " + msg.getPieces().size() + " pieces");
|
||||
logic.addNotification(new SelectableMoveNotification(pieces.stream().map(Piece::getUuid).collect(Collectors.toCollection(ArrayList::new)), msg.getTargetIndex(), msg.getIsHomeMove()));
|
||||
logic.addNotification(new SelectableMoveNotification(listPiece, msg.getTargetIndex(), msg.getIsHomeMove()));
|
||||
parent.setState(parent.getSelectPiece());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user