diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-22 14:45:37 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-22 14:45:37 (GMT) |
| commit | 19c1fa5dcb4c4a2ba9d692e136b17da316a2631b (patch) | |
| tree | 8436e6674dc4375f0392a9142be1a06ddf888337 /src/game/GameModel.h | |
| parent | 91bb5a8b781fba33901c0a2804b86055ed588aa4 (diff) | |
| download | powder-19c1fa5dcb4c4a2ba9d692e136b17da316a2631b.zip powder-19c1fa5dcb4c4a2ba9d692e136b17da316a2631b.tar.gz | |
Brush class for drawing on simulation, more interface for game
Diffstat (limited to 'src/game/GameModel.h')
| -rw-r--r-- | src/game/GameModel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h index c709535..753e19d 100644 --- a/src/game/GameModel.h +++ b/src/game/GameModel.h @@ -2,9 +2,11 @@ #define GAMEMODEL_H #include <vector> +#include "search/Save.h" #include "simulation/Simulation.h" #include "Renderer.h" #include "GameView.h" +#include "Brush.h" using namespace std; @@ -16,20 +18,28 @@ class GameModel { private: vector<GameView*> observers; + Brush * currentBrush; + Save * currentSave; Simulation * sim; Renderer * ren; int activeElement; void notifyRendererChanged(); void notifySimulationChanged(); void notifyPausedChanged(); + void notifySaveChanged(); + void notifyBrushChanged(); public: GameModel(); ~GameModel(); + Save * GetSave(); + Brush * GetBrush(); + void SetSave(Save * newSave); void AddObserver(GameView * observer); int GetActiveElement(); void SetActiveElement(int element); bool GetPaused(); void SetPaused(bool pauseState); + void ClearSimulation(); Simulation * GetSimulation(); Renderer * GetRenderer(); |
