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