예제 #1
0
        public void Initialize(Configuration theConfiguration)
        {
            initCommands();

            mySimulation = new SimulationEngine();
            mySimulation.Initialize(UniverseFactory.CreateUniverse(theConfiguration));

            configureVisualization(theConfiguration);
            displayUniverse(mySimulation.Universe);
        }
예제 #2
0
 private void resetSimulation()
 {
     mySimulation.Initialize(UniverseFactory.CreateUniverse(mySimulation.Universe.Configuration));
     updateCommandAvailability();
     displayUniverse(mySimulation.Universe);
 }