The state design pattern makes this easy to do.
正在状态设计模式使它易于实现。
You have seen how the use of the state design pattern provides a very flexible mechanism for state-driven agents. It's extremely easy to add additional states as and when required.
正如你所见,状态设计模式为状态驱动的智能体提供了具有非常好的伸缩性的机制,当需要的时候,你可以极其容易地增加新的状态。
You used the finite state machine pattern to design this behavior.
我们使用有限状态机模式设计了这种行为。
应用推荐