From 9401116d59066a2bb6de9c12d9642afee1069314 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 21 Mar 2020 17:55:49 +0100 Subject: Added history and some map from sokonline --- include/game.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/game.hpp b/include/game.hpp index 946f07c..031f4fe 100644 --- a/include/game.hpp +++ b/include/game.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include class Game @@ -38,6 +39,8 @@ public: bool won(); void move(Direction direction); + void undo(); + void reset(); Cell get(int y, int x) const; Cell get(Position pos) const; size_t getHeight() const; @@ -54,6 +57,7 @@ private: Direction m_playerDirection; std::vector m_cratePos; std::vector m_payloadPos; + std::stack< std::pair > > m_history; void construct(std::string fmt); void findWidth(std::string fmt); -- cgit