AI Toolkit
Loading...
Searching...
No Matches
aitoolkit::fsm::stack_machine< T > Class Template Reference

A stack FSM. More...

#include <fsm.hpp>

Public Member Functions

template<state_trait< T > S>
void push_state (S state, T &blackboard)
 Enters in a new state, pausing the previous one (if any).
 
void pop_state (T &blackboard)
 Exits the current state, resuming the previous one (if any).
 
void update (T &blackboard)
 Update the machine.
 

Detailed Description

template<typename T>
class aitoolkit::fsm::stack_machine< T >

A stack FSM.