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); } }
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); } }
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; } }
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); } }