aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-23 19:08:02 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commitc9297a82291882e4043ae5e0de2e631940e96b52 (patch)
tree77caa40174ebef3b77ff81a404930d18e8ac46ef /src/game/game.hpp
parent18e1db1fb8692752f64d3912c3b5ff1818be9028 (diff)
feat: add incrementing generation
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 955269c..75fb165 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -33,7 +33,12 @@ private:
std::shared_ptr<IStatusManager> _status_manager;
std::shared_ptr<IUserInputObserver> _user_input_observer;
- std::chrono::system_clock::time_point _last_update_time;
+ using TimePoint = std::chrono::system_clock::time_point;
+
+ TimePoint _last_update_time;
+ TimePoint _last_gen_update_time;
+
+ int _gen_update_speed_millis;
void _move_cursor(const Vector2 &direction) noexcept;
};