All Implemented Interfaces:
CollisionListener<Actor>, FrameUpdateListener, FrameUpdateListenerRegistration, KeyStrokeListener, KeyStrokeListenerRegistration, MouseClickListenerRegistration, MouseScrollListenerRegistration

  • Field Details

  • Constructor Details

    • PlayerCharacter

      public PlayerCharacter(GameData gameData)
  • Method Details

    • tryJumping

      public void tryJumping()
      Wird ausgeführt, wenn ein Sprungbefehl (W) angekommen ist.
    • setHorizontalMovement

      public void setHorizontalMovement(de.pirckheimer_gymnasium.engine_pi_demos.small_games.dude.PlayerCharacter.HorizontalMovement state)
    • getHorizontalMovement

      public de.pirckheimer_gymnasium.engine_pi_demos.small_games.dude.PlayerCharacter.HorizontalMovement getHorizontalMovement()
    • gotItem

      public void gotItem(Item item)
      Diese Methode wird aufgerufen, wenn der Character ein Item berührt hat.
    • smash

      public void smash()
    • onFrameUpdate

      public void onFrameUpdate(double pastTime)
      Specified by:
      onFrameUpdate in interface FrameUpdateListener
    • onKeyDown

      public void onKeyDown(KeyEvent e)
      Specified by:
      onKeyDown in interface KeyStrokeListener
    • onKeyUp

      public void onKeyUp(KeyEvent e)
      Specified by:
      onKeyUp in interface KeyStrokeListener
    • onCollision

      public void onCollision(CollisionEvent<Actor> collisionEvent)
      Specified by:
      onCollision in interface CollisionListener<Actor>
    • onCollisionEnd

      public void onCollisionEnd(CollisionEvent<Actor> collisionEvent)
      Specified by:
      onCollisionEnd in interface CollisionListener<Actor>