Refactor EffectResolver out of BattleController

This commit is contained in:
henriquenakashima 2020-10-13 23:24:46 -04:00
parent 86715b790d
commit 109e55a270
5 changed files with 204 additions and 177 deletions

View file

@ -129,6 +129,12 @@ public class BattleState: MonsterViewpoint
if (OnMonsterPositionsSet != null) OnMonsterPositionsSet();
}
public BattleParticipant[] GetTeam(TeamChoice team) {
return (team == TeamChoice.Heroes
? this.heroes.Cast<BattleParticipant>().ToArray()
: this.monsters.Cast<BattleParticipant>().ToArray());
}
public BattleHero[] Heroes {get => this.heroes;}
public BattleMonster[] Monsters {get => this.monsters;}
public BattleClock Clock {get => this.clock;}