GUI: improved preferences dialog and battlefield:

* removed outdated storm counter button and settings (related cards must have same card hint);
* clean preferences dialog from empty events/actions;
* fixed logs folder names to release names in the labels;
This commit is contained in:
Oleg Agafonov 2023-09-23 21:13:59 +04:00
parent 8ebbeef8f4
commit a3e5754d10
4 changed files with 27 additions and 443 deletions

View file

@ -62,7 +62,6 @@ public class GameView implements Serializable {
private final int turn;
private boolean special = false;
private final boolean isPlayer; // false = watching user
private final int spellsCastCurrentTurn;
private final boolean rollbackTurnsAllowed;
public GameView(GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
@ -195,13 +194,6 @@ public class GameView implements Serializable {
} else {
this.special = false;
}
CastSpellLastTurnWatcher watcher = game.getState().getWatcher(CastSpellLastTurnWatcher.class);
if (watcher != null) {
spellsCastCurrentTurn = watcher.getAmountOfSpellsAllPlayersCastOnCurrentTurn();
} else {
spellsCastCurrentTurn = 0;
}
rollbackTurnsAllowed = game.getOptions().rollbackTurnsAllowed;
}
@ -335,10 +327,6 @@ public class GameView implements Serializable {
this.canPlayObjects = canPlayObjects;
}
public int getSpellsCastCurrentTurn() {
return spellsCastCurrentTurn;
}
public boolean isRollbackTurnsAllowed() {
return rollbackTurnsAllowed;
}