Class PlayerAnimationController
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.player.PlayerAnimationController
This class listens to events relevant to a ghost entity's state and plays the animation when one
of the events is triggered.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
create()
Called when the entity is created and registered.Methods inherited from class com.deco2800.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
UP
- See Also:
-
DOWN
- See Also:
-
LEFT
- See Also:
-
RIGHT
- See Also:
-
UP_ATTACK
- See Also:
-
DOWN_ATTACK
- See Also:
-
LEFT_ATTACK
- See Also:
-
RIGHT_ATTACK
- See Also:
-
UP_GUN_ATTACK
- See Also:
-
DOWN_GUN_ATTACK
- See Also:
-
LEFT_GUN_ATTACK
- See Also:
-
RIGHT_GUN_ATTACK
- See Also:
-
UP_KNIFE_ATTACK
- See Also:
-
DOWN_KNIFE_ATTACK
- See Also:
-
LEFT_KNIFE_ATTACK
- See Also:
-
RIGHT_KNIFE_ATTACK
- See Also:
-
-
Constructor Details
-
PlayerAnimationController
public PlayerAnimationController()
-
-
Method Details
-
create
public void create()Description copied from class:Component
Called when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished. -
animateAttack
public void animateAttack()
-