Esempio 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);
 }
Esempio 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();
 }
Esempio n. 3
0
 public boolean replaceEvent(GameEvent event, Game game) {
   return effects.replaceEvent(event, game);
 }
Esempio n. 4
0
 public void addEffect(ContinuousEffect effect, UUID sourceId, Ability source) {
   effects.addEffect(effect, sourceId, source);
 }
Esempio n. 5
0
 public void removeEotEffects(Game game) {
   effects.removeEndOfTurnEffects();
   delayed.removeEndOfTurnAbilities();
   applyEffects(game);
 }
Esempio n. 6
0
 // Remove End of Combat effects
 public void removeEocEffects(Game game) {
   effects.removeEndOfCombatEffects();
   delayed.removeEndOfCombatAbilities();
   applyEffects(game);
 }