summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-04 17:52:34 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-04 17:52:34 (GMT)
commit89cdeef9ad9c164e9f484cded3096bcbc72b7207 (patch)
tree6a26f6313e7cf45a277756890e087201704bab90 /src/game/GameModel.h
parent299c1da9ae6b79ddb6cc39477ad31fb1d2a3c566 (diff)
downloadpowder-89cdeef9ad9c164e9f484cded3096bcbc72b7207.zip
powder-89cdeef9ad9c164e9f484cded3096bcbc72b7207.tar.gz
CommandInterface, Mouse, Keyboard and Tick events, on screen log, print redirected to tpt.log
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();
};