public void Initialize(Configuration theConfiguration) { initCommands(); mySimulation = new SimulationEngine(); mySimulation.Initialize(UniverseFactory.CreateUniverse(theConfiguration)); configureVisualization(theConfiguration); displayUniverse(mySimulation.Universe); }
private void resetSimulation() { mySimulation.Initialize(UniverseFactory.CreateUniverse(mySimulation.Universe.Configuration)); updateCommandAvailability(); displayUniverse(mySimulation.Universe); }