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 TypeMethodDescriptionbooleancanJump()Indicates whether the entity can jump.voidThis 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:EntityStateIndicates whether the entity can jump.- Overrides:
canJumpin classEntityState- Returns:
trueif jumping is allowed,falseotherwise
-
floorCollision
public void floorCollision()Description copied from class:EntityStateThis method will be invoked when this entity collides with the floor.- Overrides:
floorCollisionin classEntityState
-