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