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