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 mold objects and give Maki references to these objects. Eventually, when you instantiate a state machine, Maki creates instances of maki::state from these molds.
A state mold is a constexpr variable of type maki::state_mold (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: