// Check if type of building is equal to another. public bool IsEqualType(BuildingBase other) { return(other.GetType() == this.GetType()); }