Exemplo n.º 1
0
 private void SpawnAnts()
 {
     for (int i = 0; i < Hills.Length; i++)
     {
         foreach (Square square in Map.GetNeighbors(Hills[i].Square))
         {
             if (square.IsPassable)
             {
                 Ant ant = new Ant(this, square, i);
                 ant.ChangeState(new AttackState(this, ant));
                 Ants[i].Add(ant);
                 break;
             }
         }
     }
 }