Exemplo n.º 1
0
 public House(Street street, int number)
 {
     this.street = street;
     this.number = number;
 }
Exemplo n.º 2
0
 public School(string name, Street buildingAddress, int year, int capacity) : base(name, buildingAddress, year)
 {
     Capacity = capacity;
 }
Exemplo n.º 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;
Exemplo n.º 4
0
 public School(string name, Street street, int number)
 {
     this.name   = name;
     this.street = street;
     this.number = number;
 }
Exemplo n.º 5
0
 public Building(string name, Street buildingAddress, int year)
 {
     Name            = name;
     BuildingAddress = buildingAddress;
     Year            = year;
 }