#include #include "CollisionContext.h" #include "Museum.h" #include "NaiveCollisionChecker.h" #include "QuadTreeCollisionChecker.h" using namespace std; CollisionContext::CollisionContext(Museum & m) : museum(m) {} shared_ptr CollisionContext::get_checker() { return this->checker; } void CollisionContext::update() { this->checker = std::make_shared(this->museum); // this->checker = std::make_shared(this->museum); this->checker->check(); }