diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 19:55:53 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 19:55:53 +0200 |
commit | 3e1b0eb968d90f1ba5163b220c4e39dd7fd1e51b (patch) | |
tree | 2f9dcb8b7ac085514913a1ad114a5275978f95fd /CollisionContext.h | |
parent | 99d7d1695fec28208e19b34bc754dff5dd1e5642 (diff) |
finish collision checking implementation
Diffstat (limited to 'CollisionContext.h')
-rw-r--r-- | CollisionContext.h | 6 |
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; }; |