Class FallState
java.lang.Object
rekit.logic.gameelements.entities.state.EntityState
rekit.logic.gameelements.entities.state.FallState
The default state a entity is in after jumping. Represents the state where a
player can not jump
-
Field Summary
Fields inherited from class rekit.logic.gameelements.entities.state.EntityState
entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canJump()
Indicates whether the entity can jump.void
This method will be invoked when this entity collides with the floor.Methods inherited from class rekit.logic.gameelements.entities.state.EntityState
logicLoop
-
Constructor Details
-
FallState
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 classEntityState
- 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 classEntityState
-