예제 #1
0
        public void AddAnt(int row, int col, int team)
        {
            Ant ant = new Ant(row, col, team);

            if (team == 0)
            {
                Map[row, col] = Tile.AntMine;
                MyAnts.Add(ant);
            }
            else
            {
                Map[row, col] = Tile.AntEnemy;
                EnemyAnts.Add(ant);
            }
        }
예제 #2
0
        public void AddAnt(int row, int col, int team)
        {
            map[row, col] = Tile.Ant;

            Ant ant = new Ant(row, col, team);

            if (team == 0)
            {
                MyAnts.Add(ant);
            }
            else
            {
                EnemyAnts.Add(ant);
            }
        }
예제 #3
0
        public void AddAnt(int row, int col, int team)
        {
            Ant ant = new Ant(row, col, team);

            if (team == 0)
            {
                MyAnts.Add(ant);
                map[col, row].isMyAnt = true;
            }
            else
            {
                EnemyAnts.Add(ant);
                map[col, row].isEnemyAnt = true;
            }
        }
예제 #4
0
        public void AddAnt(int row, int col, int team)
        {
            map[row, col] = Tile.Ant;

            Ant ant = new Ant(row, col, team);

            if (team == 0)
            {
                MyAnts.Add(ant);
                OccupiedNextRound.Set(ant, true);
            }
            else
            {
                EnemyAnts.Add(ant);
            }
        }