forked from External/mage
spjspj - Add the 'Skip to End Step of Previous Player' button to the GamePanel and associated changes
This commit is contained in:
parent
fa5dd387b4
commit
3dfe9de05f
13 changed files with 143 additions and 17 deletions
|
|
@ -83,6 +83,7 @@ public class PlayerView implements Serializable {
|
|||
private final boolean passedUntilNextMain; // F6
|
||||
private final boolean passedUntilStackResolved; // F8
|
||||
private final boolean passedAllTurns; // F9
|
||||
private final boolean passedUntilEndStepBeforeMyTurn; // F11
|
||||
|
||||
public PlayerView(Player player, GameState state, Game game, UUID createdForPlayerId, UUID watcherUserId) {
|
||||
this.playerId = player.getId();
|
||||
|
|
@ -167,6 +168,7 @@ public class PlayerView implements Serializable {
|
|||
this.passedUntilNextMain = player.getPassedUntilNextMain();
|
||||
this.passedAllTurns = player.getPassedAllTurns();
|
||||
this.passedUntilStackResolved = player.getPassedUntilStackResolved();
|
||||
this.passedUntilEndStepBeforeMyTurn = player.getPassedUntilEndStepBeforeMyTurn();
|
||||
}
|
||||
|
||||
private boolean showInBattlefield(Permanent permanent, GameState state) {
|
||||
|
|
@ -303,4 +305,8 @@ public class PlayerView implements Serializable {
|
|||
public boolean isPassedUntilStackResolved() {
|
||||
return passedUntilStackResolved;
|
||||
}
|
||||
|
||||
public boolean isPassedUntilEndStepBeforeMyTurn() {
|
||||
return passedUntilEndStepBeforeMyTurn;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue