Package com.mygdx.game.Entitys
Class Indicator
- java.lang.Object
-
- com.mygdx.game.Entitys.Entity
-
- com.mygdx.game.Entitys.Indicator
-
public class Indicator extends Entity
Added for Assessment 2 in order to increase visual clarity on Kill Quests
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
followPlayer()
Called when updating the position of the Indicator.void
rotateSprite()
Called when rotating the sprite of the Indicator.void
update()
Called once per framecom.badlogic.gdx.math.Vector2
updateGradient()
Called when updating the gradient of the Indicator.-
Methods inherited from class com.mygdx.game.Entitys.Entity
addComponent, addComponents, cleanUp, dispose, getComponent, getComponent, getName, raiseEvents, setName
-
-
-
-
Constructor Detail
-
Indicator
public Indicator(KillQuest kq)
Creates an indicator attached to a kill quest and targeting a college- Parameters:
kq
- the Kill Quest this indicator is attached to
-
-
Method Detail
-
updateGradient
public com.badlogic.gdx.math.Vector2 updateGradient()
Called when updating the gradient of the Indicator.
-
followPlayer
public void followPlayer()
Called when updating the position of the Indicator.
-
rotateSprite
public void rotateSprite()
Called when rotating the sprite of the Indicator.
-
-