Exemplo n.º 1
0
 public void AddPlace(Place placeToAdd)
 {
     ListPlaces.Add(placeToAdd);
 }
Exemplo n.º 2
0
 public void DeletePlace(Place placeToDelete)
 {
     ListPlaces.Remove(placeToDelete);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Retourne les lieux
 /// </summary>
 /// <param name="place"></param>
 /// <returns></returns>
 public List<Ant> getAntsWherePlacesContains(Place place)
 {
     return antsList.Where(ant => ant.ListPlaces.Contains(place) == true).ToList();
 }