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 TypeMethodDescriptionboolean
canJump()
Indicates whether the entity can jump.void
This method will be invoked when this entity collides with the floor.void
Logic loop of state.
-
Constructor Details
-
JumpState
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
-
logicLoop
public void logicLoop()Description copied from class:EntityState
Logic loop of state.- Overrides:
logicLoop
in classEntityState
-