Class PlayerKeyPrompt


public class PlayerKeyPrompt extends TouchAttackComponent
  • Constructor Details

    • PlayerKeyPrompt

      public PlayerKeyPrompt(short targetLayer)
  • Method Details

    • setKeyPromptAnimator

      public void setKeyPromptAnimator(Entity keyPromptAnimator)
    • 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.
      Overrides:
      create in class TouchAttackComponent
    • keyPrompt

      public void keyPrompt(com.badlogic.gdx.physics.box2d.Fixture me, com.badlogic.gdx.physics.box2d.Fixture other)
      This function is used for guiding the user to press the relevant key to interact with the entity
      Parameters:
      me -
      other -
    • playerCollisionEnd

      public void playerCollisionEnd(com.badlogic.gdx.physics.box2d.Fixture me, com.badlogic.gdx.physics.box2d.Fixture other)