Package com.deco2800.game.services
Class ResourceManagementService
java.lang.Object
com.deco2800.game.services.ResourceManagementService
Manages automatic resource generation for resource buildings (stone quarries
and wood cutters)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRetrieves the resources produced and adds them to the players inventory.intintvoidtriggerCollectEvent(DayNightCycleStatus partOfDay) Checks if it is morning and that it's not the first day.
-
Constructor Details
-
ResourceManagementService
public ResourceManagementService()
-
-
Method Details
-
getWoodBuildings
public int getWoodBuildings() -
getStoneBuildings
public int getStoneBuildings() -
triggerCollectEvent
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
-