blob: 903f3b737be57e9ab3d6ebb0c136f78f56c0b365 (
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
|
/*
* OptionsModel.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef OPTIONSMODEL_H_
#define OPTIONSMODEL_H_
#include <vector>
#include "OptionsView.h"
#include "simulation/Simulation.h"
class Simulation;
class OptionsView;
class OptionsModel {
Simulation * sim;
std::vector<OptionsView*> observers;
void notifySettingsChanged();
public:
OptionsModel(Simulation * sim_);
void AddObserver(OptionsView* view);
bool GetHeatSimulation();
void SetHeatSimulation(bool state);
bool GetAmbientHeatSimulation();
void SetAmbientHeatSimulation(bool state);
bool GetNewtonianGravity();
void SetNewtonianGravity(bool state);
bool GetWaterEqualisation();
void SetWaterEqualisation(bool state);
virtual ~OptionsModel();
};
#endif /* OPTIONSMODEL_H_ */
|