Class TimeStateMachine

java.lang.Object
rekit.util.state.TimeStateMachine

public class TimeStateMachine extends Object

Simple StateMachine that is meant to be extended or decorated to achieve state dependent behavior where every state has a fixed duration.

The method logicLoop() must be periodically called to be able to let the States check for its time to be up. For this cause, the State must supply a State.getTimerTime() as well as a State.getNextState().

Author:
Angelo Aracri