public Physics(IIntegrator Integrator, bool AllowLoadSnapshot, StartupDoneDelegate StartupDone) { this.clock = new Clock(); this.integrator = Integrator; startupDoneDelegate = StartupDone; AllBodies = new LinkedList <CelestialBody>(); BodyDictionary = new Dictionary <string, CelestialBody>(DEFAULT_STARTING_NUM_ALL_BODIES); StarDictionary = new Dictionary <int, Star>(DEFAULT_STARTING_NUM_STARS); SearchDatabase = null; Date = new DateTime(2011, 1, 1); SleepBetweenCycles = 0; createOrbiters(); loadEphemeres(!TEST && AllowLoadSnapshot); if (TEST) { this.TargetDate = TEST_DATE; } else { GoToToday(); } this.ephemeris = this.availableEphemeres.GetClosest(this.TargetDate); invokeEphemeris(SetTimeMode: true, Wait: false, EstablishGravitationalInfluences: true); loadStars(); setupConstellations(); setupCaptioning(); }
public MultistepPhysics(bool AllowLoadSnapshot, StartupDoneDelegate StartupDone) : base(AllowLoadSnapshot, StartupDone) { }