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