Class FallState

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

public class FallState extends EntityState
The default state a entity is in after jumping. Represents the state where a player can not jump
  • Constructor Details

    • FallState

      public FallState(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