Class HumanAnimationController
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.HumanAnimationController
Listens for events relevant to a Human character (Just engineers at this stage)
Each event will trigger a certain animation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Instantiates a HumanAnimationController and adds all the event listeners for the Human entity - Just engineers at this stage.void
deselectEngineer
(String currentAnimation) Deseelects the engineer entity by starting the appropriate animation without an outline and removes the engineer menu from the stageboolean
void
setClicked
(boolean clicked) Sets the clicked state of the entityMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
HumanAnimationController
public HumanAnimationController()
-
-
Method Details
-
create
public void create()Instantiates a HumanAnimationController and adds all the event listeners for the Human entity - Just engineers at this stage. -
isClicked
public boolean isClicked()- Returns:
- true if the entity has been clicked/selected, false otherwise
-
setClicked
public void setClicked(boolean clicked) Sets the clicked state of the entity- Parameters:
clicked
- true if the entity has been clicked/selected, false otherwise
-
deselectEngineer
Deseelects the engineer entity by starting the appropriate animation without an outline and removes the engineer menu from the stage- Parameters:
currentAnimation
- the current animation of the entity
-