예제 #1
0
파일: State.cs 프로젝트: kamilion/WISP
 /// <summary>
 /// What happens when the state is exited (i.e. a new state is entered)
 /// </summary>
 public virtual void Exit(IStatefulEntity ent)
 {
 }
예제 #2
0
파일: State.cs 프로젝트: kamilion/WISP
 /// <summary>
 /// What happens when the state is first entered
 /// </summary>
 public virtual void Enter(IStatefulEntity ent)
 {
 }
예제 #3
0
파일: State.cs 프로젝트: kamilion/WISP
 /// <summary>
 /// Something that happens on demand, i.e. whenever this state is executed
 /// </summary>
 /// <param name="ent"></param>
 public virtual void ExecuteStateInstructions(IStatefulEntity ent)
 {
 }
예제 #4
0
 public StateMachine(IStatefulEntity owner, IState previousState, IState globalState)
 {
     m_Owner         = owner;
     m_PreviousState = previousState;
     m_GlobalState   = globalState;
 }
예제 #5
0
 public StateMachine(IStatefulEntity owner, IState previousState, IState globalState)
 {
     m_Owner = owner;
     m_PreviousState = previousState;
     m_GlobalState = globalState;
 }
예제 #6
0
 /// <summary>
 /// What happens when the state is exited (i.e. a new state is entered)
 /// </summary>
 public virtual void Exit(IStatefulEntity ent)
 {
 }
예제 #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)
 {
 }
예제 #8
0
 /// <summary>
 /// What happens when the state is first entered
 /// </summary>
 public virtual void Enter(IStatefulEntity ent)
 {
 }
예제 #9
0
 public override void Exit(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Default state exited.");
 }
예제 #10
0
 public override void ExecuteStateInstructions(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Executing default state instructions (nothing).");
 }
예제 #11
0
 public override void ExecuteStateInstructions(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Executing default state instructions (nothing).");
 }
예제 #12
0
 public override void Exit(IStatefulEntity ent)
 {
     //System.Diagnostics.Debug.WriteLine("Default state exited.");
 }