Esempio n. 1
0
        public void DeadAnt(int row, int col)
        {
            map[col, row].isDeadAnt = true;

            // but always add to the dead list
            DeadTiles.Add(new Location(row, col));
        }
Esempio n. 2
0
        public void DeadAnt(int row, int col)
        {
            // food could spawn on a spot where an ant just died
            // don't overwrite the space unless it is land
            if (Map[row, col] == Tile.Land)
            {
                Map[row, col] = Tile.Dead;
            }

            // but always add to the dead list
            DeadTiles.Add(new Location(row, col));
        }