mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
* PopUp Menus -Added F2/F3/F4/F9 to menu. Set correct popup menu for watcher.
This commit is contained in:
parent
b4d43649b4
commit
c22a75a6c3
4 changed files with 119 additions and 15 deletions
|
|
@ -64,7 +64,6 @@ public class GameView implements Serializable {
|
|||
private SimpleCardsView hand;
|
||||
private Map<String, SimpleCardsView> opponentHands;
|
||||
private CardsView stack = new CardsView();
|
||||
//private List<UUID> stackOrder = new ArrayList<UUID>();
|
||||
private List<ExileView> exiles = new ArrayList<ExileView>();
|
||||
private List<RevealedView> revealed = new ArrayList<RevealedView>();
|
||||
private List<LookedAtView> lookedAt = new ArrayList<LookedAtView>();
|
||||
|
|
@ -76,10 +75,12 @@ public class GameView implements Serializable {
|
|||
private String priorityPlayerName = "";
|
||||
private int turn;
|
||||
private boolean special = false;
|
||||
private boolean isPlayer;
|
||||
|
||||
|
||||
public GameView(GameState state, Game game) {
|
||||
priorityTime = game.getPriorityTime();
|
||||
public GameView(GameState state, Game game, boolean isPlayer) {
|
||||
this.isPlayer = isPlayer;
|
||||
this.priorityTime = game.getPriorityTime();
|
||||
for (Player player: state.getPlayers().values()) {
|
||||
players.add(new PlayerView(player, state, game));
|
||||
}
|
||||
|
|
@ -275,4 +276,8 @@ public class GameView implements Serializable {
|
|||
return activePlayerId;
|
||||
}
|
||||
|
||||
public boolean isPlayer() {
|
||||
return isPlayer;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue