Class FoodTextureManager

  • All Implemented Interfaces:
    com.badlogic.gdx.utils.Disposable

    public class FoodTextureManager
    extends java.lang.Object
    implements com.badlogic.gdx.utils.Disposable
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FoodTextureManager

        public FoodTextureManager()
    • 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 interface com.badlogic.gdx.utils.Disposable