mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed issue 219
This commit is contained in:
parent
7418d201e4
commit
12d3b974d0
2 changed files with 5 additions and 0 deletions
|
@ -215,6 +215,7 @@ public class GameSession extends GameWatcher {
|
||||||
list.add(new LookedAtView(entry.getKey(), entry.getValue(), game));
|
list.add(new LookedAtView(entry.getKey(), entry.getValue(), game));
|
||||||
}
|
}
|
||||||
gameView.setLookedAt(list);
|
gameView.setLookedAt(list);
|
||||||
|
game.getState().clearLookedAt();
|
||||||
|
|
||||||
return gameView;
|
return gameView;
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,6 +229,10 @@ public class GameState implements Serializable, Copyable<GameState> {
|
||||||
return lookedAt.get(playerId);
|
return lookedAt.get(playerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearLookedAt() {
|
||||||
|
lookedAt.clear();
|
||||||
|
}
|
||||||
|
|
||||||
public Turn getTurn() {
|
public Turn getTurn() {
|
||||||
return turn;
|
return turn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue