Exemple #1
0
            protected void _init(uint id, SimpleFsm machine, State owner)
            {
                mName       = "";
                mStateID    = id;
                mMachine    = machine;
                mParent     = null;
                mChild      = null;
                mOwner      = owner;
                mFuncEnter  = null;
                mFuncUpdate = null;
                mFuncExit   = null;

                mTransition = new Dictionary <uint, State>();

                mkStateEventArgs = new StateEventArgs(this);

                machine.RegisterState(this);
            }
Exemple #2
0
 public State(uint id, SimpleFsm machine, State owner)
 {
     _init(id, machine, owner);
 }
Exemple #3
0
 public State(uint id, SimpleFsm machine)
 {
     _init(id, machine, null);
 }