C# Class QFSM, QFramework

状态机实现
Mostrar archivo Open project: liangxiegame/QFramework

Public Methods

Method Description
AddState ( string name ) : void

添加状态

AddTranslation ( string fromState, string name, string toState, FSMCallfunc callfunc ) : void

添加条转

Clear ( ) : void
HandleEvent ( string name ) : void

处理事件

Start ( string name ) : void

启动状态机

Method Details

AddState() public method

添加状态
public AddState ( string name ) : void
name string
return void

AddTranslation() public method

添加条转
public AddTranslation ( string fromState, string name, string toState, FSMCallfunc callfunc ) : void
fromState string
name string
toState string
callfunc FSMCallfunc
return void

Clear() public method

public Clear ( ) : void
return void

HandleEvent() public method

处理事件
public HandleEvent ( string name ) : void
name string Name.
return void

Start() public method

启动状态机
public Start ( string name ) : void
name string
return void