AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aire::StateMachine Struct Reference

A state machine that controls transition between states. More...

#include <stateMachine.h>

Inheritance diagram for Aire::StateMachine:
Inheritance graph
[legend]
Collaboration diagram for Aire::StateMachine:
Collaboration graph
[legend]

Public Member Functions

 StateMachine (State *currentState)
 
void transitionTo (std::string dstState)
 

Public Attributes

StatecurrentState
 The current state that the state machine is in.
 

Detailed Description

A state machine that controls transition between states.

Member Function Documentation

◆ transitionTo()

void Aire::StateMachine::transitionTo ( std::string dstState)
inline

Move the current state to one of its linked states. If destination state is unrecognised, do nothing.

Parameters
dstStateDestination state to move to.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: