Class JumpState
java.lang.Object
rekit.logic.gameelements.entities.state.EntityState
rekit.logic.gameelements.entities.state.JumpState
The jumping state a entity is in upon jumping until landing Represents the
 state where a player can not jump anymore.
- Author:
 - Angelo Aracri
 
- 
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.voidLogic loop of state. 
- 
Constructor Details
- 
JumpState
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
 - 
logicLoop
public void logicLoop()Description copied from class:EntityStateLogic loop of state.- Overrides:
 logicLoopin classEntityState
 
 -