Class StationCookingComponent

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

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

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