OpenEnroth 73e68f7
|
Implement this abstract class to create a new State that can be added to an Fsm. FsmState derives from FsmEventHandler, enabling reaction to platform application events (such as input, window events, etc.) by overriding the appropriate functions. More...
#include <FsmState.h>
Public Member Functions | |
virtual | ~FsmState ()=default |
virtual FsmAction | update ()=0 |
virtual FsmAction | enter ()=0 |
Invoked within Fsm::update() when transitioning to this state as the new current state. More... | |
virtual void | exit ()=0 |
Invoked within Fsm::update() when this state is replaced by a new current state. More... | |
Public Member Functions inherited from FsmEventHandler | |
FsmEventHandler () | |
Public Member Functions inherited from PlatformEventFilter | |
PlatformEventFilter (std::initializer_list< PlatformEventType > eventTypes) | |
PlatformEventFilter (PlatformEventWildcard eventTypes) | |
virtual bool | event (const PlatformEvent *event) |
const std::vector< PlatformEventType > | eventTypes () const |
Implement this abstract class to create a new State that can be added to an Fsm. FsmState derives from FsmEventHandler, enabling reaction to platform application events (such as input, window events, etc.) by overriding the appropriate functions.
|
virtualdefault |
|
pure virtual |
Invoked within Fsm::update() when transitioning to this state as the new current state.
Implemented in CreditsState, LoadStep2State, MainMenuState, StartState, and VideoState.
|
pure virtual |
Invoked within Fsm::update() when this state is replaced by a new current state.
Implemented in CreditsState, LoadStep2State, MainMenuState, StartState, and VideoState.
|
pure virtual |
Implemented in CreditsState, LoadStep2State, MainMenuState, StartState, and VideoState.