forked from External/mage
Closed #169: Make it possible to untap lands
This commit is contained in:
parent
dd9aec6a49
commit
29b84e0d92
24 changed files with 244 additions and 207 deletions
|
|
@ -74,10 +74,17 @@ public class GameView implements Serializable {
|
|||
private String priorityPlayerName = "";
|
||||
private int turn;
|
||||
private boolean special = false;
|
||||
private int statesSavedSize;
|
||||
|
||||
public GameView(GameState state, Game game) {
|
||||
for (Player player: state.getPlayers().values()) {
|
||||
players.add(new PlayerView(player, state, game));
|
||||
if (player.getStoredBookmark() > 0) {
|
||||
if (this.statesSavedSize > 0) {
|
||||
throw new IllegalStateException("This shouldn't happen");
|
||||
}
|
||||
this.statesSavedSize = player.getStoredBookmark();
|
||||
}
|
||||
}
|
||||
for (StackObject stackObject: state.getStack()) {
|
||||
if (stackObject instanceof StackAbility) {
|
||||
|
|
@ -254,7 +261,7 @@ public class GameView implements Serializable {
|
|||
return special;
|
||||
}
|
||||
|
||||
/*public List<UUID> getStackOrder() {
|
||||
return stackOrder;
|
||||
}*/
|
||||
public int getStatesSavedSize() {
|
||||
return statesSavedSize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue