blob: 0d91929fb7b5ea6317384e44a57b1196bc0954e9 (
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
|
#ifndef PLAYABLE_H_DDC566C3
#define PLAYABLE_H_DDC566C3
#include "component.h"
#include <functional>
class PlayableComponent : public Component {
public:
using MapChangeCallback = std::function<void()>;
bool changingMap = false;
int newMapId = -1;
double newMapX = 0;
double newMapY = 0;
MapChangeCallback newMapCallback;
int checkpointMapId = -1;
double checkpointX = 0;
double checkpointY = 0;
bool checkpointObjectActivated = false;
size_t checkpointObjectIndex = 0;
};
#endif /* end of include guard: PLAYABLE_H_DDC566C3 */
|