mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
* 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:
parent
3a57485501
commit
87f919ecac
12 changed files with 232 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue