summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameModel.h')
-rw-r--r--src/game/GameModel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h
index 7b953c9..7dff6f2 100644
--- a/src/game/GameModel.h
+++ b/src/game/GameModel.h
@@ -2,6 +2,7 @@
#define GAMEMODEL_H
#include <vector>
+#include <deque>
#include "search/Save.h"
#include "simulation/Simulation.h"
#include "interface/Colour.h"
@@ -35,6 +36,7 @@ private:
//unsigned char * clipboardData;
Save * stamp;
Save * clipboard;
+ deque<string> consoleLog;
vector<GameView*> observers;
vector<Tool*> toolList;
vector<Menu*> menuList;
@@ -64,6 +66,7 @@ private:
void notifyStampChanged();
void notifyColourSelectorColourChanged();
void notifyColourSelectorVisibilityChanged();
+ void notifyLogChanged(string entry);
public:
GameModel();
~GameModel();
@@ -110,6 +113,8 @@ public:
void SetStamp(Save * newStamp);
void AddStamp(unsigned char * saveData, int saveSize);
void SetClipboard(unsigned char * saveData, int saveSize);
+ void Log(string message);
+ deque<string> GetLog();
Save * GetClipboard();
Save * GetStamp();
};