Class TextureImageComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.TextureImageComponent

public class TextureImageComponent extends Component
A very simple component that stores refernece to the buildings texture, this is used by the building UI to display an image of the UI, if the building uses an atlas file rather than a texture
  • Constructor Details

    • TextureImageComponent

      public TextureImageComponent(String assetPath)
  • Method Details

    • getAsset

      public com.badlogic.gdx.graphics.Texture getAsset()
      Returns the UI display texture of the building
      Returns:
      UI display texture.