blob: 03df00fbc166cd94e9413b10d1a9cf1d00f85122 (
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 PROTOTYPE_H_BB208E0F
#define PROTOTYPE_H_BB208E0F
#include <string>
#include <map>
#include "map.h"
#include "entity_manager.h"
class Game;
class Prototype {
public:
using id_type = EntityManager::id_type;
enum class Action {
none,
save
};
Prototype(
int w,
int h,
std::string spritePath,
Action action) :
w_(w),
h_(h),
spritePath_(std::move(spritePath)),
action_(action)
{
}
id_type instantiate(
Game& game,
const Map::Object& object) const;
private:
int w_;
int h_;
std::string spritePath_;
Action action_;
};
#endif /* end of include guard: PROTOTYPE_H_BB208E0F */
|