blob: ce46a55b4e8f2a69e242b56d11e065c57e41e643 (
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
|
#pragma once
#include <utility>
class Museum;
class PathfindingContext {
public:
PathfindingContext(Museum &);
public:
void set_start(const std::pair<int, int> & point);
const std::pair<int, int> & get_start() { return this->start_point; }
void set_end(const std::pair<int, int> & point);
const std::pair<int, int> & get_end() { return this->end_point; }
bool valid_point(const std::pair<int, int> & point);
private:
std::pair<int, int> start_point = { -1, -1 };
std::pair<int, int> end_point = { -1, -1 };
private:
Museum & museum;
};
|