예제 #1
0
        public AState ChangeState(AState state)
        {
            AState result = PopState();

            PushState(state);
            return(result);
        }
예제 #2
0
        public AState PopState()
        {
            AState result = _stack.Pop();

            result.Exit();
            return(result);
        }
예제 #3
0
 public void PushState(AState state)
 {
     _stack.Push(state);
     state.Enter();
 }