Class Tomato
- java.lang.Object
-
- cs.eng1.piazzapanic.food.ingredients.Ingredient
-
- cs.eng1.piazzapanic.food.ingredients.Tomato
-
public class Tomato extends Ingredient
-
-
Field Summary
-
Fields inherited from class cs.eng1.piazzapanic.food.ingredients.Ingredient
isChopped, isCooked, textureManager
-
-
Constructor Summary
Constructors Constructor Description Tomato(FoodTextureManager textureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.badlogic.gdx.graphics.Texture
getTexture()
Get the texture based on whether the tomato has been chopped.-
Methods inherited from class cs.eng1.piazzapanic.food.ingredients.Ingredient
arrayFromString, fromString, getIsChopped, getIsCooked, getTextureManager, getType, setIsChopped, setIsCooked, toString
-
-
-
-
Constructor Detail
-
Tomato
public Tomato(FoodTextureManager textureManager)
-
-
Method Detail
-
getTexture
public com.badlogic.gdx.graphics.Texture getTexture()
Get the texture based on whether the tomato has been chopped.- Overrides:
getTexture
in classIngredient
- Returns:
- the texture to display.
-
-