Package cs.eng1.piazzapanic.food
Class FoodTextureManager
- java.lang.Object
-
- cs.eng1.piazzapanic.food.FoodTextureManager
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public class FoodTextureManager extends java.lang.Object implements com.badlogic.gdx.utils.Disposable
-
-
Constructor Summary
Constructors Constructor Description FoodTextureManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
com.badlogic.gdx.graphics.Texture
getTexture(java.lang.String foodType)
-
-
-
Method Detail
-
getTexture
public com.badlogic.gdx.graphics.Texture getTexture(java.lang.String foodType)
- Parameters:
foodType
- The food string to get the corresponding texture from the hashmap.- Returns:
- the texture for the specified food or an image to signify that the texture does not exist.
-
dispose
public void dispose()
- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
-