changed var name

This commit is contained in:
Cedric Beck
2024-12-10 14:34:44 +01:00
parent 0432dd6bd7
commit 9f8fd9c22f

View File

@@ -29,6 +29,8 @@ public SwapState(ClientState parent, ClientGameLogic logic) {
this.parent = (PowerCardState) parent;
possibleOwnPieces = new ArrayList<>();
possibleEnemyPieces = new ArrayList<>();
selectedOwnPiece = null;
selectedEnemyPiece = null;
}
@Override
@@ -37,15 +39,15 @@ public void enter() {
ArrayList<UUID> ownPieces = new ArrayList<>(possibleOwnPieces.stream().map(Piece::getUuid).toList());
ArrayList<UUID> enemyPieces = new ArrayList<>(possibleEnemyPieces.stream().map(Piece::getUuid).toList());
logic.addNotification(new SelectableSwapNotification(ownPieces, enemyPieces));
possibleOwnPieces = null;
possibleEnemyPieces = null;
selectedOwnPiece = null;
selectedEnemyPiece = null;
}
@Override
public void exit() {
LOGGER.log(System.Logger.Level.INFO, "Exiting SwapState");
possibleOwnPieces = null;
possibleEnemyPieces = null;
possibleOwnPieces.clear();
possibleEnemyPieces.clear();
}
public void setPossibleOwnPieces(ArrayList<Piece> possibleOwnPieces) {