Class AvatarIconComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.rendering.RenderComponent
com.deco2800.game.components.friendlyunits.AvatarIconComponent
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class AvatarIconComponent extends RenderComponent
  • Field Details

    • texturePath

      public String texturePath
  • Constructor Details

    • AvatarIconComponent

      public AvatarIconComponent(String texturePath)
    • AvatarIconComponent

      public AvatarIconComponent(com.badlogic.gdx.graphics.Texture texture)
  • Method Details

    • draw

      protected void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.