forked from External/mage
[CLB] Implemented White Plume Adventurer
This commit is contained in:
parent
4777466b50
commit
86dad5e54f
13 changed files with 524 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue