Ejemplo n.º 1
0
        public void AdjustMovement(int step)
        {
            if (movement == null)
            {
                return;
            }

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