Package ai.statemachine
Interface State
public interface State
Defines a state inside a
StateMachine
and can basically do anything inside its boundaries.- Since:
- 13.07.2021
- Author:
- Juyas
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called if the current state gets transitioned to.void
Called if the current state transitioned to another.void
updateState
(float dt) Update loop call from the object using theStateMachine
-
Method Details
-
enterState
void enterState()Called if the current state gets transitioned to. -
updateState
void updateState(float dt) Update loop call from the object using theStateMachine
- Parameters:
dt
- the delta time value
-
exitState
void exitState()Called if the current state transitioned to another. Call happens before update loop call and before the next statesenterState()
-