因为模式要求它“允许一个对象在它的内部状态变化的时候改变它的行为。”
Because the pattern says that it "Allows an object to alter its behavior when its internal state changes."
我们使用有限状态机模式设计了这种行为。
You used the finite state machine pattern to design this behavior.
设计此行为所用的有限状态机模式使逻辑清晰透明。
The finite state machine pattern used to design this behavior makes its logic transparent.
应用推荐