Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSM ¶
FSM represents a Finite State Machine, which can have one State active at a time.
func (*FSM) Change ¶
Change allows you to change the current, "main" State assigned to the FSM. If you run Change(), it will call Exit() on the previous State and Enter() on the next State.
func (*FSM) HasState ¶
HasState returns if the FSM has a State associated with the name in its directory.
func (*FSM) Unregister ¶
Unregister removes a State from the FSM using its name.
Click to show internal directories.
Click to hide internal directories.