基本组件

基本组件有

  • state
  • transition
  • event
  • statemachine
statemachine
state
transition
event

transition:类模板,只包含静态方法,在状态对事件作react时执行的动作
state:是simple_state的子类,simple_state的父类为leaf_state或者node_state。采用了CRTP技术
statemachine:状态机,采用了CRTP技术

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐