Example #1
0
 /// <summary>
 /// What happens when the state is exited (i.e. a new state is entered)
 /// </summary>
 public virtual void Exit(IStatefulEntity ent)
 {
 }
Example #2
0
 /// <summary>
 /// What happens when the state is first entered
 /// </summary>
 public virtual void Enter(IStatefulEntity ent)
 {
 }
Example #3
0
 /// <summary>
 /// Something that happens on demand, i.e. whenever this state is executed
 /// </summary>
 /// <param name="ent"></param>
 public virtual void ExecuteStateInstructions(IStatefulEntity ent)
 {
 }
Example #4
0
 public StateMachine(IStatefulEntity owner, IState previousState, IState globalState)
 {
     m_Owner         = owner;
     m_PreviousState = previousState;
     m_GlobalState   = globalState;
 }
Example #5
0
 public StateMachine(IStatefulEntity owner, IState previousState, IState globalState)
 {
     m_Owner = owner;
     m_PreviousState = previousState;
     m_GlobalState = globalState;
 }
Example #6
0
 /// <summary>
 /// What happens when the state is exited (i.e. a new state is entered)
 /// </summary>
 public virtual void Exit(IStatefulEntity ent)
 {
 }
Example #7
0
 /// <summary>
 /// Something that happens on demand, i.e. whenever this state is executed
 /// </summary>
 /// <param name="ent"></param>
 public virtual void ExecuteStateInstructions(IStatefulEntity ent)
 {
 }
Example #8
0
 /// <summary>
 /// What happens when the state is first entered
 /// </summary>
 public virtual void Enter(IStatefulEntity ent)
 {
 }
Example #9
0
 public override void Exit(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Default state exited.");
 }
Example #10
0
 public override void ExecuteStateInstructions(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Executing default state instructions (nothing).");
 }
Example #11
0
 public override void ExecuteStateInstructions(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Executing default state instructions (nothing).");
 }
Example #12
0
 public override void Exit(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Default state exited.");
 }