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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreate()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:ComponentCalled 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() 
 -