1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- package ui.controller;
- import ui.model.Model;
- public class GlobalController {
- private Model MODEL;
- public GlobalController(Model model) {
- this.MODEL = model;
- }
- /**
- * Returns SCALE
- *
- * @return SCALE
- */
- public int getScale() {
- return MODEL.getScale();
- }
- /**
- * Returns SCALE Divided by 2
- *
- * @return SCALE Divided by 2
- */
- public int getScaleDiv2() {
- return MODEL.getScaleDiv2();
- }
- /**
- * Changes the value of SCALE and SCALEDIV2
- *
- * @param int
- * Scale
- */
- public void setScale(int s) {
- MODEL.setScale(s);
- }
- /**
- * sets the current Iteration
- *
- * @param cur_it,
- * the current Iteration
- */
- public void setCurIteration(int cur_it) {
- MODEL.setCurIteration(cur_it);
- }
- /**
- * Returns numberOfSaves
- *
- * @return numberOfSaves
- */
- public int getNumbersOfSaves() {
- return MODEL.getNumberOfSaves();
- }
- /**
- * sets the max number of autosaves
- *
- * @param numberOfSaves,
- * the max number of autosaves
- */
- public void setNumberOfSaves(int numberOfSaves) {
- MODEL.setNumberOfSaves(numberOfSaves);
- ;
- }
- /**
- * @return sets the timerSpeed
- */
- public void setTimerSpeed(int t) {
- MODEL.setTimerSpeed(t);
- }
-
- /**
- * @param isSimulation
- * boolean for for isSimulation
- */
- public void setIsSimulation(boolean b) {
- MODEL.setIsSimulation(b);
- }
- }
|