Class Road

All Implemented Interfaces:
Serializable, Buildable

public class Road extends Facility
See Also:
  • Constructor Details

    • Road

      public Road(int oneTimeCost, int maintenanceFee, Coordinate coordinate, Dimension dimension)
  • Method Details

    • getBuildableType

      public BuildableType getBuildableType()
      Description copied from interface: Buildable
      A type can be:
      Returns:
      the type of the buildable
    • isUnderConstruction

      public boolean isUnderConstruction()
      Description copied from interface: Buildable
      Checks if the buildable is under construction
      Returns:
      boolean
    • isConnected

      public boolean isConnected()
      Description copied from interface: Buildable
      if buildable is connected to master road
      Specified by:
      isConnected in interface Buildable
      Overrides:
      isConnected in class Facility
      Returns:
      true id connected