Class ResourceBuilding

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.infrastructure.ResourceBuilding

public class ResourceBuilding extends Component
Resource building is a type of building used to generate resources for the player
  • Constructor Details

    • ResourceBuilding

      public ResourceBuilding(int productionRate, ResourceType type)
  • Method Details

    • getProductionRate

      public int getProductionRate()
      Returns this building's production rate
      Returns:
      the production rate
    • updateProductionRate

      public void updateProductionRate(int productionRate)
      Updates this building's production rate to a new value
      Parameters:
      productionRate - the new production rate
    • getType

      public ResourceType getType()
      Returns this building's resource type
      Returns:
      the resource type