Package cs.eng1.piazzapanic.food.recipes
Class Recipe
- java.lang.Object
-
- cs.eng1.piazzapanic.food.recipes.Recipe
-
-
Constructor Summary
Constructors Constructor Description Recipe(java.lang.String type, FoodTextureManager textureManager)
The constructor method for the class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getRecipeIngredients()
Gets what ingredients are needed to make the food itemcom.badlogic.gdx.graphics.Texture
getTexture()
FoodTextureManager
getTextureManager()
java.lang.String
getType()
-
-
-
Constructor Detail
-
Recipe
public Recipe(java.lang.String type, FoodTextureManager textureManager)
The constructor method for the class- Parameters:
type
- The food object that inherits the classtextureManager
- The controller from which we can get information on what texture each food object should have
-
-
Method Detail
-
getTexture
public com.badlogic.gdx.graphics.Texture getTexture()
-
getType
public java.lang.String getType()
-
getRecipeIngredients
public java.util.List<java.lang.String> getRecipeIngredients()
Gets what ingredients are needed to make the food item- Returns:
- The list of ingredients that are needed
-
getTextureManager
public FoodTextureManager getTextureManager()
-
-