aboutsummaryrefslogtreecommitdiff
path: root/Museum.h
diff options
context:
space:
mode:
Diffstat (limited to 'Museum.h')
-rw-r--r--Museum.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Museum.h b/Museum.h
index 73183c3..0792ec3 100644
--- a/Museum.h
+++ b/Museum.h
@@ -21,16 +21,21 @@ public:
void set_pause(bool paused);
bool get_pause() { return this->paused; }
void update();
- void time_jump(long offset);
+ void skip_forward();
+ void skip_backward();
private:
bool paused = false;
+ unsigned long jump = 0;
private:
- static constexpr std::chrono::milliseconds tick_interval = 15ms;
- unsigned long jump = 0;
bool working = true;
std::thread * worker = nullptr;
void work();
+
+private:
+ unsigned long long tick = 0;
+ static constexpr unsigned snapshot_ticks = 50;
+ static constexpr std::chrono::milliseconds tick_interval = 15ms;
};