diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-24 12:24:17 (GMT) |
| commit | 9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d (patch) | |
| tree | ac7d040253b459ce102e476cb19ab59e3cfa90d7 /src/gui/options/OptionsModel.h | |
| parent | 6bf98ccdca39936a3c51367862eed7c49f8786ec (diff) | |
| parent | bdc69f31c0be94191015838886bdcc2bc67f1acb (diff) | |
| download | powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.zip powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.tar.gz | |
Merge branch 'reorganisation' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/gui/options/OptionsModel.h')
| -rw-r--r-- | src/gui/options/OptionsModel.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gui/options/OptionsModel.h b/src/gui/options/OptionsModel.h new file mode 100644 index 0000000..1fdf372 --- /dev/null +++ b/src/gui/options/OptionsModel.h @@ -0,0 +1,43 @@ +#ifndef OPTIONSMODEL_H_ +#define OPTIONSMODEL_H_ +#include <vector> +#include "OptionsView.h" +#include "simulation/Simulation.h" + +class GameModel; +class Simulation; +class OptionsView; +class OptionsModel { + GameModel * gModel; + Simulation * sim; + std::vector<OptionsView*> observers; + void notifySettingsChanged(); +public: + OptionsModel(GameModel * gModel); + 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); + bool GetShowAvatars(); + void SetShowAvatars(bool state); + int GetAirMode(); + void SetAirMode(int airMode); + int GetEdgeMode(); + void SetEdgeMode(int edgeMode); + int GetGravityMode(); + void SetGravityMode(int gravityMode); + bool GetFullscreen(); + void SetFullscreen(bool fullscreen); + bool GetFastQuit(); + void SetFastQuit(bool fastquit); + bool GetScale(); + void SetScale(bool scale); + virtual ~OptionsModel(); +}; + +#endif /* OPTIONSMODEL_H_ */ |
