Пример #1
0
        public virtual double getTravelTime(Orbit orbit, Weather weather)
        {
            double time = (orbit.getDistance() / Math.Min(maxSpeed, orbit.getTrafficSpeed())) + ((orbit.getCratersOnOrbit(weather) * timeToCrossOneCraterinMins) / minutes);

            return(time);
        }
Пример #2
0
 public virtual bool canTravel(Weather weather)
 {
     return(suitableWeatherTypes.Contains(weather.getWeatherType()));
 }