Add note on step_next trigger to LinearFSM

This commit is contained in:
Kristóf Tóth 2018-07-27 14:00:07 +02:00
parent 3d3328f835
commit 8df196f258

View File

@ -12,7 +12,8 @@ class LinearFSM(FSMBase):
This is a state machine for challenges with linear progression, consisting of
a number of steps specified in the constructor. It automatically sets up 2
actions (triggers) between states as such:
(0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ... and so on
(0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ...
(0) -- step_next --> (1) -- step_next --> (2) -- step_next --> (3) ...
"""
def __init__(self, number_of_steps):
self.states = [State(name=str(index)) for index in range(number_of_steps)]