Example #1
0
        public BattleField CreateBattle(int width, int height, int obstacleCount, int gap, int battleUnitCount)
        {
            BattleField bd = new BattleField();

            bd.Generate(width, height, obstacleCount, gap, battleUnitCount);
            bd.battleID = battleID++;
            return(bd);
        }
Example #2
0
        public BattleField CreateBattle(int width, int height, int obstacleCount, int gap, List <SO_BattleUnitAttribute> teamA, List <SO_BattleUnitAttribute> teamB)
        {
            BattleField bd = new BattleField();

            bd.Generate(width, height, obstacleCount, gap, teamA, teamB);
            bd.battleID = battleID++;
            return(bd);
        }