aboutsummaryrefslogtreecommitdiff
path: root/Museum.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-15 16:30:35 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-15 16:30:35 +0200
commit3d9a47f0f6dcb6e6e33bf2d2bd34fa903422ac62 (patch)
treec93706980d97f8ccea419e3aed8488903c0ed4bd /Museum.h
parent3f375a193d0f10a8121d568a745a7903c075c568 (diff)
implement forward time jumps
Diffstat (limited to 'Museum.h')
-rw-r--r--Museum.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Museum.h b/Museum.h
index 33ad7e1..73183c3 100644
--- a/Museum.h
+++ b/Museum.h
@@ -21,13 +21,14 @@ public:
void set_pause(bool paused);
bool get_pause() { return this->paused; }
void update();
+ void time_jump(long offset);
private:
- unsigned long long tick = 0;
bool paused = false;
private:
static constexpr std::chrono::milliseconds tick_interval = 15ms;
+ unsigned long jump = 0;
bool working = true;
std::thread * worker = nullptr;
void work();