Package model.common
Interface Buildable
- All Known Implementing Classes:
CommercialZone
,Education
,EffectualFacility
,Facility
,Forest
,IndustrialZone
,Police
,ResidentialZone
,Road
,School
,Stadium
,University
,Zone
public interface Buildable
-
Method Summary
Modifier and TypeMethodDescriptionA type can be:int
Every buildable cost some when built.boolean
if buildable is connected to master roadboolean
Checks if the buildable is under construction
-
Method Details
-
getCoordinate
Coordinate getCoordinate()- Returns:
- the coordinate of the buildable
-
getDimension
Dimension getDimension()- Returns:
- the dimension of the buildable
-
getBuildableType
BuildableType getBuildableType()A type can be:- Returns:
- the type of the buildable
-
getOneTimeCost
int getOneTimeCost()Every buildable cost some when built.- Returns:
- the costs.
-
isUnderConstruction
boolean isUnderConstruction()Checks if the buildable is under construction- Returns:
- boolean
-
isConnected
boolean isConnected()if buildable is connected to master road- Returns:
- true id connected
-