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>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAvatarIconComponent
(com.badlogic.gdx.graphics.Texture texture) AvatarIconComponent
(String texturePath) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draw the renderable.Methods inherited from class com.deco2800.game.rendering.RenderComponent
compareTo, create, dispose, getLayer, getZIndex, render
Methods inherited from class com.deco2800.game.components.Component
earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
texturePath
-
-
Constructor Details
-
AvatarIconComponent
-
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 classRenderComponent
- Parameters:
batch
- Batch to render to.
-