public class GlobalController
extends java.lang.Object
| Constructor and Description |
|---|
GlobalController(Model model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumbersOfSaves()
Returns numberOfSaves.
|
int |
getScale()
Returns SCALE.
|
int |
getScaleDiv2()
Returns SCALE Divided by 2.
|
void |
setCurIteration(int curit)
sets the current Iteration.
|
void |
setIsSimulation(boolean b)
Set isSimulation.
|
void |
setNumberOfSaves(int numberofSaves)
sets the max number of autosaves.
|
void |
setScale(int s)
Changes the value of SCALE and SCALEDIV2.
|
void |
setTimerSpeed(int t)
Set the timerSpeed.
|
public GlobalController(Model model)
model - the Modelpublic int getScale()
public int getScaleDiv2()
public void setScale(int s)
s - Scalepublic void setCurIteration(int curit)
curit - the current Iterationpublic int getNumbersOfSaves()
public void setNumberOfSaves(int numberofSaves)
numberofSaves - the max number of autosavespublic void setTimerSpeed(int t)
t - Interval in mspublic void setIsSimulation(boolean b)
b - boolean for for isSimulation