Class ResourceManagementService

java.lang.Object
com.deco2800.game.services.ResourceManagementService

public class ResourceManagementService extends Object
Manages automatic resource generation for resource buildings (stone quarries and wood cutters)
  • Constructor Details

    • ResourceManagementService

      public ResourceManagementService()
  • Method Details

    • getWoodBuildings

      public int getWoodBuildings()
    • getStoneBuildings

      public int getStoneBuildings()
    • triggerCollectEvent

      public void triggerCollectEvent(DayNightCycleStatus partOfDay)
      Checks if it is morning and that it's not the first day. Triggers resource collection if so
    • collectResources

      public void collectResources()
      Retrieves the resources produced and adds them to the players inventory.
    • getEvents

      public EventHandler getEvents()