Class Lettuce
- java.lang.Object
-
- cs.eng1.piazzapanic.food.ingredients.Ingredient
-
- cs.eng1.piazzapanic.food.ingredients.Lettuce
-
public class Lettuce extends Ingredient
-
-
Field Summary
-
Fields inherited from class cs.eng1.piazzapanic.food.ingredients.Ingredient
isChopped, isCooked, textureManager
-
-
Constructor Summary
Constructors Constructor Description Lettuce(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 lettuce has been chopped.-
Methods inherited from class cs.eng1.piazzapanic.food.ingredients.Ingredient
arrayFromString, fromString, getIsChopped, getIsCooked, getTextureManager, getType, setIsChopped, setIsCooked, toString
-
-
-
-
Constructor Detail
-
Lettuce
public Lettuce(FoodTextureManager textureManager)
-
-
Method Detail
-
getTexture
public com.badlogic.gdx.graphics.Texture getTexture()
Get the texture based on whether the lettuce has been chopped.- Overrides:
getTexture
in classIngredient
- Returns:
- the texture to display.
-
-