Class StationChoppingComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.station.StationChoppingComponent
StationChoppingComponent.java
This class controls the chopping of items within a station. This class is
meant to be a component of the cutting board and blender component and allows
the station to transform the item to a 'chopped' state.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Function to start the chopping of the ingredient.void
create()
Called when the entity is created and registered.void
Function to stop the chopping of an ingredient within a stationMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
itemHandler
-
-
Constructor Details
-
StationChoppingComponent
public StationChoppingComponent()
-
-
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. -
chopIngredient
public void chopIngredient()Function to start the chopping of the ingredient. -
stopChoppingIngredient
public void stopChoppingIngredient()Function to stop the chopping of an ingredient within a station
-