示例#1
0
 private MoveDirection GetPrevious()
 {
     if (nextIndex == 0)
     {
         getDirection = GetNext;
         return(getDir());
     }
     --nextIndex;
     return(getDir());
 }
示例#2
0
 private MoveDirection GetNext()
 {
     if (nextIndex == directedSteps.Count - 1)
     {
         getDirection = GetPrevious;
         return(getDir());
     }
     ++nextIndex;
     return(getDir());
 }
示例#3
0
 public MoveDirection HandleObstacle(int stoppedStepLenght)
 {
     getDirection = invertDirectionChangingDir();
     stepOffset   = GetCurrentStep() - stoppedStepLenght;
     return(getDir());
 }
示例#4
0
 public MoveUtilsSeqence(List <MoveLogical.MoveInfo> st)
 {
     directedSteps = st;
     getDirection  = GetNext;
 }