Esempio n. 1
0
File: HSM.cs Progetto: Hengle/HFSM-1
 /// <summary>
 /// Transition this HSM to a new state.
 /// </summary>
 /// <param name="state"> The state to transition to. </param>
 public void TransitionTo(IHState <SIG, CTX> state)
 {
     if (state != currentState)
     {
         currentState.Exit();
         currentState = state;
         currentState.Enter();
     }
 }
Esempio n. 2
0
File: HSM.cs Progetto: Hengle/HFSM-1
 public void SetInitialState(IHState <SIG, CTX> initialState)
 {
     currentState = initialState;
 }
Esempio n. 3
0
 public void SetIHState(int index)
 {
     handlerState = (IHState)index;
 }