blob: 91778701771493358b7d0db11ff58f28812c0975 (
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
42
43
44
45
|
#ifndef MAP_H_74055FC0
#define MAP_H_74055FC0
#include <vector>
#include <string>
#include <list>
#include <stdexcept>
#include <map>
class Map {
public:
Map(
int id,
std::vector<int> tiles,
std::string title) :
id_(id),
tiles_(std::move(tiles)),
title_(std::move(title))
{
}
inline size_t getId() const
{
return id_;
}
inline const std::vector<int>& getTiles() const
{
return tiles_;
}
inline const std::string& getTitle() const
{
return title_;
}
private:
int id_;
std::vector<int> tiles_;
std::string title_;
};
#endif /* end of include guard: MAP_H_74055FC0 */
|