예제 #1
0
파일: Battle.cs 프로젝트: sctjkc01/Clocked
            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!");
                }
            }
예제 #2
0
            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!");
                }
            }