aboutsummaryrefslogtreecommitdiff
path: root/CollisionContext.h
blob: 0dd37c00a6bbabd882bad4e30fe66c01a6ff0df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <memory>

#include "CollisionChecker.h"

class Museum;

class CollisionContext {
public:
	CollisionContext(Museum &);

	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;
};