From ec6630e0609e0e333ae8fd67f91996f5393955d4 Mon Sep 17 00:00:00 2001 From: Fireclaw Date: Mon, 27 Dec 2021 15:04:51 +0100 Subject: [PATCH] Add Note about the FSM Any state enum --- programming/finite-state-machines/simple-fsm-usage.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/programming/finite-state-machines/simple-fsm-usage.rst b/programming/finite-state-machines/simple-fsm-usage.rst index 10e59273..73eb037c 100644 --- a/programming/finite-state-machines/simple-fsm-usage.rst +++ b/programming/finite-state-machines/simple-fsm-usage.rst @@ -101,8 +101,11 @@ Simple FSM Usage To enforce this, you can store ``self.defaultTransitions`` in the FSM's ``__init__()`` method. This should be a map of allowed transitions from each state. That is, each key of the map is a state name; for that key, the value - is a list of allowed transitions from the indicated state. Any transition not - listed in defaultTransitions is considered invalid. For example: + is a list of allowed transitions from the indicated state. In addition an + enum value for "Any" state can be used by setting ``FSM.EnumStates.ANY`` as + a key or ``[FSM.EnumStates.ANY]`` as value. + Any transition not listed in defaultTransitions is considered invalid. + For example: .. code-block:: python