Example #1
0
 public void step(City city)
 {
     if (route.Exists(x => x == city))
     {
         route.Add(city);
         if (!city.isFood)
             pheromone--;
         else
             pheromone = GlobalVars.MAXPHEROMONE;
     }
 }
Example #2
0
 /// <summary>
 /// Agrega la ciudad donde se aloja el hormiguero
 /// </summary>
 /// <param name="city">Ciudad seleccionada</param>
 public void setOrigin(City city)
 {
     this.origin = city;
 }