示例#1
0
        public void AdjustMovement(int step)
        {
            if (movement == null)
            {
                return;
            }

            if (step < 0 || step >= movement.TotalSteps)
            {
                movement = null;
            }
            else
            {
                movement.Adjust(step);
            }
        }
示例#2
0
 public void StartMovement(Point2D origin, Point2D destination, int totalSteps)
 {
     movement = new GobMovement(origin, destination, totalSteps);
 }