java.lang.Object
com.csse3200.game.components.ordersystem.Recipe

public class Recipe extends Object
Get recipe data from any station
  • Field Details

    • recipeName

      protected String recipeName
  • Constructor Details

    • Recipe

      public Recipe(String recipeName)
      Constructs recipe data from the recipe's name
      Parameters:
      recipeName - name of the recipe
  • Method Details

    • loadRecipeDetails

      protected void loadRecipeDetails()
      Loads recipe data
    • isValid

      public boolean isValid()
    • getIngredients

      public List<String> getIngredients()
      Gets recipe ingredients
      Returns:
      recipe ingredients
    • getMakingTime

      public int getMakingTime()
      Gets recipe making time
      Returns:
      making time
    • getName

      public String getName()
      Gets recipe name
      Returns:
      recipe name
    • getBurnedTime

      public Integer getBurnedTime()
      Gets recipe burn time
      Returns:
      recipe burn time
    • getStationType

      public String getStationType()
      Gets recipe station type
      Returns:
      recipe station type
    • getSingleStationRecipe

      public SingleStationRecipeConfig getSingleStationRecipe()
    • getMultiStationRecipe

      public MultiStationRecipeConfig getMultiStationRecipe()
    • setSingleStationRecipe

      public void setSingleStationRecipe(SingleStationRecipeConfig singleStationRecipe)
    • setMultiStationRecipe

      public void setMultiStationRecipe(MultiStationRecipeConfig multiStationRecipe)