public void Transport(Package package, IJournal journal, int distance) { Gas -= package.GetWeight() * 23; journal.Write($"Driving with {package.Name}..."); var time = distance / 35; TransportFor(time); journal.Write("Finished driving!"); }
public void Transport(Package package, IJournal journal, int distance) { Gas -= base.CalculateDepletion(package, 23); journal.Write($"Driving with {package.Name}..."); var time = base.CalculateTime(distance, 35); base.TransportFor(time); journal.Write("Finished driving!"); }
public void Transport(Package package, IJournal journal, int distance) { Kilocalories -= package.GetWeight() * 100; journal.Write($"Walking with {package.Name}..."); var time = distance / 3; TransportFor(time); journal.Write("Finished walking!"); }
public void Transport(Package package, IJournal journal, int distance) { CalculateDepletion(package.GetWeight()); journal.Write($"{ToTitleCase(GetVerb())} with {package.Name}..."); var time = distance / GetRate(); TransportFor(time); journal.Write($"Finished {GetVerb().ToLower()}!"); }
public void Transport(Package package, IJournal journal, int distance) { Kilocalories -= base.CalculateDepletion(package, 100); journal.Write($"Walking with {package.Name}..."); var time = base.CalculateTime(distance, 3); base.TransportFor(time); journal.Write("Finished walking!"); }