major optimization updates
[debian/openrocket] / src / net / sf / openrocket / simulation / SimulationConditions.java
index 1617709007569657ecf5c6b254a4eee737d7ce56..3e5820862e9f0b217a78c8d4c5bd22516796f031 100644 (file)
@@ -57,12 +57,13 @@ public class SimulationConditions implements Monitorable, Cloneable {
        private List<SimulationListener> simulationListeners = new ArrayList<SimulationListener>();
        
 
+       private int randomSeed = 0;
+       
        private int modID = 0;
        private int modIDadd = 0;
        
        
 
-
        public AerodynamicCalculator getAerodynamicCalculator() {
                return aerodynamicCalculator;
        }
@@ -240,6 +241,18 @@ public class SimulationConditions implements Monitorable, Cloneable {
        }
        
        
+
+       public int getRandomSeed() {
+               return randomSeed;
+       }
+       
+       
+       public void setRandomSeed(int randomSeed) {
+               this.randomSeed = randomSeed;
+               this.modID++;
+       }
+       
+       
        // TODO: HIGH: Make cleaner
        public List<SimulationListener> getSimulationListenerList() {
                return simulationListeners;