aboutsummaryrefslogtreecommitdiff
path: root/Museum.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 15:37:31 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 15:37:31 +0200
commite8601b35b601b0ee1486dfaa12385e71b7f2b300 (patch)
tree244fc97a12ee17e28e6fc407988508bfbc06d89a /Museum.cpp
parentfe8f7273f0efdfe319a0d3e3b2fc2847992745af (diff)
WIP quadtree visualization scaffolding
Diffstat (limited to 'Museum.cpp')
-rw-r--r--Museum.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Museum.cpp b/Museum.cpp
index f6b8977..fccb0db 100644
--- a/Museum.cpp
+++ b/Museum.cpp
@@ -2,7 +2,7 @@
using namespace std;
-Museum::Museum() : people(*this), canvas(*this) {
+Museum::Museum() : people(*this), canvas(*this), collision(*this) {
this->worker = new std::thread(&Museum::work, this);
}
@@ -18,6 +18,7 @@ Museum::~Museum() {
void Museum::update() {
this->people.update();
this->canvas.update();
+ this->collision.update();
this->tick++;
}