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

A simple FSM. More...

#include <fsm.hpp>

Public Member Functions

template<state_trait< T > S>
void set_state (S state, T &blackboard)
 Enters in a new state, exiting the previous one (if any).
 
void clear_state (T &blackboard)
 Clear the current state.
 
void pause (T &blackboard)
 Pause the machine.
 
void resume (T &blackboard)
 Resume the machine.
 
void update (T &blackboard)
 Update the machine.
 

Detailed Description

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

A simple FSM.