public ISpeedProgress AddTicks(int ticks) { var currentTicks = CurrentSpeed + ticks; var progress = new SpeedProgress(this.InitialSpeed, currentTicks, this.TargetSpeed, this.Weighting); return(progress); }
public ISpeedProgress SubtractTicks(int ticks) { var currentTicks = CurrentSpeed - ticks; if (currentTicks < 0) { currentTicks = 0; } var progress = new SpeedProgress(this.InitialSpeed, currentTicks, this.TargetSpeed, this.Weighting); return(progress); }
public ISpeedProgress NewSpeedSpeedProgress(int value) { var progress = new SpeedProgress(this.InitialSpeed, value, this.TargetSpeed, this.Weighting); return(progress); }