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