aboutsummaryrefslogtreecommitdiff
path: root/CollisionContext.h
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 /CollisionContext.h
parentfe8f7273f0efdfe319a0d3e3b2fc2847992745af (diff)
WIP quadtree visualization scaffolding
Diffstat (limited to 'CollisionContext.h')
-rw-r--r--CollisionContext.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/CollisionContext.h b/CollisionContext.h
new file mode 100644
index 0000000..3cce4d7
--- /dev/null
+++ b/CollisionContext.h
@@ -0,0 +1,22 @@
+#pragma once
+#include <memory>
+
+#include "QuadTree.h"
+
+class Museum;
+
+class CollisionContext {
+public:
+ CollisionContext(Museum &);
+
+ void update();
+
+ std::shared_ptr<QuadTree> get_quadtree();
+
+private:
+ Museum & museum;
+
+private:
+ std::shared_ptr<QuadTree> quadtree = nullptr;
+};
+