[CLB] Implemented White Plume Adventurer

This commit is contained in:
Evan Kranzler 2022-05-17 20:18:18 -04:00
parent 4777466b50
commit 86dad5e54f
13 changed files with 524 additions and 9 deletions

View file

@ -54,6 +54,7 @@ public class PlayerView implements Serializable {
private final boolean passedAllTurns; // F9
private final boolean passedUntilEndStepBeforeMyTurn; // F11
private final boolean monarch;
private final boolean initiative;
private final List<String> designationNames = new ArrayList<>();
public PlayerView(Player player, GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
@ -153,6 +154,7 @@ public class PlayerView implements Serializable {
this.passedUntilStackResolved = player.getPassedUntilStackResolved();
this.passedUntilEndStepBeforeMyTurn = player.getPassedUntilEndStepBeforeMyTurn();
this.monarch = player.getId().equals(game.getMonarchId());
this.initiative = player.getId().equals(game.getInitiativeId());
for (Designation designation : player.getDesignations()) {
this.designationNames.add(designation.getName());
}
@ -309,6 +311,10 @@ public class PlayerView implements Serializable {
return monarch;
}
public boolean isInitiative() {
return initiative;
}
public List<String> getDesignationNames() {
return designationNames;
}