forked from External/mage
Fixed in controlling the turn. Mindslaver works now.
This commit is contained in:
parent
98d99d01c6
commit
b562f57a5c
7 changed files with 99 additions and 149 deletions
|
|
@ -202,12 +202,12 @@ public class GameSession extends GameWatcher {
|
|||
Map<String, CardsView> handCards = new HashMap<String, CardsView>();
|
||||
for (UUID playerId : player.getPlayersUnderYourControl()) {
|
||||
Player opponent = game.getPlayer(playerId);
|
||||
handCards.put(player.getName(), new CardsView(opponent.getHand().getCards(game)));
|
||||
handCards.put(opponent.getName(), new CardsView(opponent.getHand().getCards(game)));
|
||||
}
|
||||
gameView.setOpponentHands(handCards);
|
||||
}
|
||||
|
||||
//TODO: should player be able to look at all these cards?
|
||||
//TODO: should player who controls another player's turn be able to look at all these cards?
|
||||
|
||||
List<LookedAtView> list = new ArrayList<LookedAtView>();
|
||||
for (Entry<String, Cards> entry : game.getState().getLookedAt(playerId).entrySet()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue