summaryrefslogtreecommitdiff
path: root/src/game/GameModel.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-16 21:03:40 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-16 21:03:40 (GMT)
commitedad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9 (patch)
tree94ac1023a0241e27176d63aabee26fd1b876e08b /src/game/GameModel.h
parentf19c7f62c77f6a3e8f5728e015166b0c625f5f67 (diff)
downloadpowder-edad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9.zip
powder-edad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9.tar.gz
Undo/Snapshots, fixes #118
Diffstat (limited to 'src/game/GameModel.h')
-rw-r--r--src/game/GameModel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameModel.h b/src/game/GameModel.h
index 33cf119..0531f87 100644
--- a/src/game/GameModel.h
+++ b/src/game/GameModel.h
@@ -57,6 +57,7 @@ private:
bool colourSelector;
ui::Colour colour;
float toolStrength;
+ std::deque<Snapshot*> history;
std::string infoTip;
std::string toolTip;
@@ -100,6 +101,9 @@ public:
void BuildMenus();
void BuildQuickOptionMenu();
+ std::deque<Snapshot*> GetHistory();
+ void SetHistory(std::deque<Snapshot*> newHistory);
+
void UpdateQuickOptions();
void SetToolStrength(float value);