mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
Possibility to view other player's hands in UI.
This commit is contained in:
parent
752569874d
commit
f3334c6e92
3 changed files with 94 additions and 9 deletions
|
|
@ -31,6 +31,7 @@ package mage.view;
|
|||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.MageObject;
|
||||
|
|
@ -56,6 +57,7 @@ public class GameView implements Serializable {
|
|||
|
||||
private List<PlayerView> players = new ArrayList<PlayerView>();
|
||||
private CardsView hand;
|
||||
private Map<String, CardsView> opponentHands;
|
||||
private CardsView stack = new CardsView();
|
||||
private List<ExileView> exiles = new ArrayList<ExileView>();
|
||||
private List<RevealedView> revealed = new ArrayList<RevealedView>();
|
||||
|
|
@ -124,6 +126,14 @@ public class GameView implements Serializable {
|
|||
this.hand = hand;
|
||||
}
|
||||
|
||||
public Map<String, CardsView> getOpponentHands() {
|
||||
return opponentHands;
|
||||
}
|
||||
|
||||
public void setOpponentHands(Map<String, CardsView> opponentHands) {
|
||||
this.opponentHands = opponentHands;
|
||||
}
|
||||
|
||||
public TurnPhase getPhase() {
|
||||
return phase;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue