Exemplo n.º 1
0
 public void applyEffects(Game game) {
   for (Player player : players.values()) {
     player.reset();
   }
   battlefield.reset(game);
   combat.reset();
   this.reset();
   effects.apply(game);
   battlefield.fireControlChangeEvents(game);
 }
Exemplo n.º 2
0
 public void clear() {
   battlefield.clear();
   effects.clear();
   triggers.clear();
   delayed.clear();
   triggered.clear();
   stack.clear();
   exile.clear();
   command.clear();
   revealed.clear();
   lookedAt.clear();
   turnNum = 0;
   extraTurn = false;
   legendaryRuleActive = true;
   gameOver = false;
   specialActions.clear();
   otherAbilities.clear();
   combat.clear();
   turnMods.clear();
   watchers.clear();
   values.clear();
   zones.clear();
 }
Exemplo n.º 3
0
 public boolean replaceEvent(GameEvent event, Game game) {
   return effects.replaceEvent(event, game);
 }
Exemplo n.º 4
0
 public void addEffect(ContinuousEffect effect, UUID sourceId, Ability source) {
   effects.addEffect(effect, sourceId, source);
 }
Exemplo n.º 5
0
 public void removeEotEffects(Game game) {
   effects.removeEndOfTurnEffects();
   delayed.removeEndOfTurnAbilities();
   applyEffects(game);
 }
Exemplo n.º 6
0
 // Remove End of Combat effects
 public void removeEocEffects(Game game) {
   effects.removeEndOfCombatEffects();
   delayed.removeEndOfCombatAbilities();
   applyEffects(game);
 }