Class StationChoppingComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.station.StationChoppingComponent

public class StationChoppingComponent extends Component
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 Details

  • 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.
      Overrides:
      create in class Component
    • 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