Maki
|
A state represents what a system (or part of a system) could be doing at any given instant.
The state that represents what the system is currently doing is called the active state.
You don't directly create state objects when using Maki. What you do is create state builder objects and give Maki references to these objects. Eventually, when you instantiate a state machine, Maki creates instances of maki::state
with these builders.
A state builder is a constexpr
variable of type maki::state_builder
(which is actually a class template with plenty of template parameters you don't have to worry about):
You can set options through method chaining. Entry and exit actions are examples of such options: