Example #1
0
        public WIPStateMachine(StationaryLocomotion locomotion, WalkInPlace wip)
        {
            m_WIPState = new WIPState(this, locomotion, wip);
            m_States   = new WIPPhase[]
            {
                new Stationary(m_WIPState),
                new BeginUpMove(m_WIPState),
                new TurnDirection(m_WIPState),
                new BeginDownMove(m_WIPState),
                new EndStep(m_WIPState),
                new SmoothEndStep(m_WIPState),
            };

            m_Current = m_States[0];
        }
Example #2
0
 public EndStep(WIPState state)
     : base(state)
 {
 }
Example #3
0
 public SmoothEndStep(WIPState state)
     : base(state)
 {
 }
Example #4
0
 public BeginDownMove(WIPState state)
     : base(state)
 {
 }
Example #5
0
 public TurnDirection(WIPState state)
     : base(state)
 {
 }
Example #6
0
 public BeginUpMove(WIPState state)
     : base(state)
 {
 }
Example #7
0
 public Stationary(WIPState state)
     : base(state)
 {
 }
Example #8
0
 public WIPPhase(WIPState state)
 {
     m_State = state;
     TryUpdateNewActor();
 }