* Reworked handling of revealed and look at windows. Windows can stay open now and moved to a position and stay there.

This commit is contained in:
LevelX2 2015-06-21 23:49:16 +02:00
parent 3a57485501
commit 87f919ecac
12 changed files with 232 additions and 63 deletions

View file

@ -1201,7 +1201,6 @@ public abstract class GameImpl implements Game, Serializable {
applyEffects();
state.getPlayers().resetPassed();
fireUpdatePlayersEvent();
state.getRevealed().reset();
resetShortLivingLKI();
break;
} else {
@ -1980,6 +1979,8 @@ public abstract class GameImpl implements Game, Serializable {
}
logger.trace("fireUpdatePlayersEvent");
tableEventSource.fireTableEvent(EventType.UPDATE, null, this);
getState().clearLookedAt();
getState().clearRevealed();
}
@Override

View file

@ -445,8 +445,12 @@ public class GameState implements Serializable, Copyable<GameState> {
return lookedAt.get(playerId);
}
public void clearLookedAt(UUID playerId) {
lookedAt.remove(playerId);
public void clearRevealed() {
revealed.clear();
}
public void clearLookedAt() {
lookedAt.clear();
}
public Turn getTurn() {