Class Recipe
java.lang.Object
com.csse3200.game.components.ordersystem.Recipe
Get recipe data from any station
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets recipe burn timeGets recipe ingredientsint
Gets recipe making timegetName()
Gets recipe nameGets recipe station typeboolean
isValid()
protected void
Loads recipe datavoid
setMultiStationRecipe
(MultiStationRecipeConfig multiStationRecipe) void
setSingleStationRecipe
(SingleStationRecipeConfig singleStationRecipe)
-
Field Details
-
recipeName
-
-
Constructor Details
-
Recipe
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
Gets recipe ingredients- Returns:
- recipe ingredients
-
getMakingTime
public int getMakingTime()Gets recipe making time- Returns:
- making time
-
getName
Gets recipe name- Returns:
- recipe name
-
getBurnedTime
Gets recipe burn time- Returns:
- recipe burn time
-
getStationType
Gets recipe station type- Returns:
- recipe station type
-
getSingleStationRecipe
-
getMultiStationRecipe
-
setSingleStationRecipe
-
setMultiStationRecipe
-