aboutsummaryrefslogtreecommitdiff
path: root/CollisionContext.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 19:55:53 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 19:55:53 +0200
commit3e1b0eb968d90f1ba5163b220c4e39dd7fd1e51b (patch)
tree2f9dcb8b7ac085514913a1ad114a5275978f95fd /CollisionContext.h
parent99d7d1695fec28208e19b34bc754dff5dd1e5642 (diff)
finish collision checking implementation
Diffstat (limited to 'CollisionContext.h')
-rw-r--r--CollisionContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/CollisionContext.h b/CollisionContext.h
index e35c373..0dd37c0 100644
--- a/CollisionContext.h
+++ b/CollisionContext.h
@@ -1,4 +1,5 @@
#pragma once
+
#include <memory>
#include "CollisionChecker.h"
@@ -12,11 +13,16 @@ public:
void update();
std::shared_ptr<CollisionChecker> get_checker();
+ void cycle_method();
private:
Museum & museum;
private:
std::shared_ptr<CollisionChecker> checker = nullptr;
+
+private:
+ std::shared_ptr<CollisionChecker> create_checker();
+ size_t checker_index = 0;
};