blob: 1df92ba75d6c6561d06c85c7b3bfee6006f93ad9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* OptionsController.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef OPTIONSCONTROLLER_H_
#define OPTIONSCONTROLLER_H_
#include "Controller.h"
#include "simulation/Simulation.h"
#include "OptionsView.h"
#include "OptionsModel.h"
class GameModel;
class OptionsModel;
class OptionsView;
class OptionsController {
GameModel * gModel;
OptionsView * view;
OptionsModel * model;
ControllerCallback * callback;
public:
bool HasExited;
OptionsController(GameModel * gModel_, ControllerCallback * callback_);
void SetHeatSimulation(bool state);
void SetAmbientHeatSimulation(bool state);
void SetNewtonianGravity(bool state);
void SetWaterEqualisation(bool state);
void SetGravityMode(int gravityMode);
void SetAirMode(int airMode);
void SetEdgeMode(int airMode);
void SetFullscreen(bool fullscreen);
void SetScale(bool scale);
void SetFastQuit(bool fastquit);
void Exit();
OptionsView * GetView();
virtual ~OptionsController();
};
#endif /* OPTIONSCONTROLLER_H_ */
|