Пример #1
0
 public House(Street street, int number)
 {
     this.street = street;
     this.number = number;
 }
Пример #2
0
 public School(string name, Street buildingAddress, int year, int capacity) : base(name, buildingAddress, year)
 {
     Capacity = capacity;
 }
Пример #3
0
 /// <summary>
 /// Checks if street has a building above, above-right, below and below-right itself
 /// </summary>
 /// <param name="s">Street to check</param>
 /// <returns>True if yes, false if no</returns>
 private static bool isRightTile(Street s) => s.GetAbove() is Building && s.GetAbove().GetLeft() is Building && s.GetBelow() is Building && s.GetBelow().GetLeft() is Building;
Пример #4
0
 public School(string name, Street street, int number)
 {
     this.name   = name;
     this.street = street;
     this.number = number;
 }
Пример #5
0
 public Building(string name, Street buildingAddress, int year)
 {
     Name            = name;
     BuildingAddress = buildingAddress;
     Year            = year;
 }