aboutsummaryrefslogtreecommitdiff
path: root/Museum.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-15 17:00:11 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-15 17:00:11 +0200
commitb34d3b09e7fc9d796d56157ca5f9adb864a31c76 (patch)
tree4cbfc46f3e824394520a409cff5667dba5e24ff1 /Museum.cpp
parent3d9a47f0f6dcb6e6e33bf2d2bd34fa903422ac62 (diff)
more shuffling
Diffstat (limited to 'Museum.cpp')
-rw-r--r--Museum.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Museum.cpp b/Museum.cpp
index df9144a..f6b8977 100644
--- a/Museum.cpp
+++ b/Museum.cpp
@@ -18,14 +18,14 @@ Museum::~Museum() {
void Museum::update() {
this->people.update();
this->canvas.update();
+ this->tick++;
}
-void Museum::time_jump(long offset) {
- if (offset >= 0) {
- this->jump = offset;
- return;
- }
+void Museum::skip_forward() {
+ this->jump += this->snapshot_ticks;
+}
+void Museum::skip_backward() {
}