Refactor EffectResolver out of BattleController
This commit is contained in:
parent
86715b790d
commit
109e55a270
5 changed files with 204 additions and 177 deletions
|
|
@ -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;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue