public BattleInstance(List<BattleMob> turnOrder, Sprite background, Song theme) { this.turnOrder = turnOrder; this.background = background; this.theme = theme; foreach(BattleMob alpha in turnOrder) { if(alpha is BattleProtag) { bp = (BattleProtag)alpha; } } if(bp == null) { throw new Exception("Protagonist not in turn order!"); } }
public BattleInstance(List <BattleMob> turnOrder, Sprite background, Song theme) { this.turnOrder = turnOrder; this.background = background; this.theme = theme; foreach (BattleMob alpha in turnOrder) { if (alpha is BattleProtag) { bp = (BattleProtag)alpha; } } if (bp == null) { throw new Exception("Protagonist not in turn order!"); } }