Class StationCookingComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.station.StationCookingComponent
StationCookingComponent.java
This class controls the cooking of items within a station. This is designed
to be used by cooking stations which include the stove and the over.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Function to start the cooking of the ingredient within the station.void
create()
Called when the entity is created and registered.void
Function to spot the cooking of an ingredient within the stationMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
itemHandler
-
-
Constructor Details
-
StationCookingComponent
public StationCookingComponent()
-
-
Method Details
-
create
public void create()Description copied from class:Component
Called when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished. -
cookIngredient
public void cookIngredient()Function to start the cooking of the ingredient within the station. -
stopCookingIngredient
public void stopCookingIngredient()Function to spot the cooking of an ingredient within the station
-