aboutsummaryrefslogtreecommitdiff
path: root/CollisionContext.cpp
blob: e7550e5bf237d5c5ad134e0fbd84bf98623058d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <memory>

#include "CollisionContext.h"
#include "Museum.h"

using namespace std;

CollisionContext::CollisionContext(Museum & m) : museum(m) {}

shared_ptr<QuadTree> CollisionContext::get_quadtree() {
	return this->quadtree;
}

void CollisionContext::update() {
	this->quadtree = std::make_shared<QuadTree>(this->museum);
}