Class JumpState

java.lang.Object
rekit.logic.gameelements.entities.state.EntityState
rekit.logic.gameelements.entities.state.JumpState

public class JumpState extends EntityState
The jumping state a entity is in upon jumping until landing Represents the state where a player can not jump anymore.
Author:
Angelo Aracri
  • Constructor Details

    • JumpState

      public JumpState(StateEntity entity)
      Create State.
      Parameters:
      entity - the entity
  • Method Details

    • canJump

      public boolean canJump()
      Description copied from class: EntityState
      Indicates whether the entity can jump.
      Overrides:
      canJump in class EntityState
      Returns:
      true if jumping is allowed, false otherwise
    • floorCollision

      public void floorCollision()
      Description copied from class: EntityState
      This method will be invoked when this entity collides with the floor.
      Overrides:
      floorCollision in class EntityState
    • logicLoop

      public void logicLoop()
      Description copied from class: EntityState
      Logic loop of state.
      Overrides:
      logicLoop in class EntityState