Exemplo n.º 1
0
        public void Initialize(Configuration theConfiguration)
        {
            initCommands();

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

            configureVisualization(theConfiguration);
            displayUniverse(mySimulation.Universe);
        }
Exemplo n.º 2
0
 private void resetSimulation()
 {
     mySimulation.Initialize(UniverseFactory.CreateUniverse(mySimulation.Universe.Configuration));
     updateCommandAvailability();
     displayUniverse(mySimulation.Universe);
 }