X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fsf%2Fopenrocket%2Fsimulation%2FSimulationConditions.java;h=3e5820862e9f0b217a78c8d4c5bd22516796f031;hb=8320c04afa30e2aa0150adc870d02abeedb01066;hp=1617709007569657ecf5c6b254a4eee737d7ce56;hpb=6460090e9ec07b12234369583032d02d7c5ed3b1;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/simulation/SimulationConditions.java b/src/net/sf/openrocket/simulation/SimulationConditions.java index 16177090..3e582086 100644 --- a/src/net/sf/openrocket/simulation/SimulationConditions.java +++ b/src/net/sf/openrocket/simulation/SimulationConditions.java @@ -57,12 +57,13 @@ public class SimulationConditions implements Monitorable, Cloneable { private List simulationListeners = new ArrayList(); + 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 getSimulationListenerList() { return simulationListeners;