Class HumanAnimationController

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.HumanAnimationController

public class HumanAnimationController extends Component
Listens for events relevant to a Human character (Just engineers at this stage) Each event will trigger a certain animation
  • 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.
      Overrides:
      create in class Component
    • 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

      public void deselectEngineer(String currentAnimation)
      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