Exemple #1
0
        public void TravelTo(Planet otherPlanet)
        {
            var warp = ship.speed;

            var distance = location.DistanceTo(otherPlanet);
            var speed    = Planet.WarpToLightYearsPer(warp);

            age += distance / speed;

            location = otherPlanet;

            ship.TravelTo(otherPlanet);
        }