Пример #1
0
 public void AddPlace(Place placeToAdd)
 {
     ListPlaces.Add(placeToAdd);
 }
Пример #2
0
 public void DeletePlace(Place placeToDelete)
 {
     ListPlaces.Remove(placeToDelete);
 }
Пример #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();
 }