blob: b88adf46aa826d37ec6a471d0eb9e4fe9561059c (
plain) (
blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef WORLD_H_153C698B
#define WORLD_H_153C698B
#include <map>
#include <string>
#include "map.h"
class World {
public:
explicit World(std::string filename);
inline const Map& getMap(size_t id) const
{
return maps_.at(id);
}
inline size_t getStartingMapId() const
{
return startMap_;
}
inline int getStartingX() const
{
return startX_;
}
inline int getStartingY() const
{
return startY_;
}
private:
std::map<size_t, Map> maps_;
size_t startMap_;
int startX_;
int startY_;
};
#endif /* end of include guard: WORLD_H_153C698B */
|