blob: bd4a00a2ddaf63ded111fb7926f1a2b6c8028f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <crepe/api/Script.h>
#include "PlayerObject.h"
class PlayerScript : public crepe::Script {
public:
PlayerScript(PlayerObject * player);
PlayerScript(const PlayerScript &) = delete;
PlayerScript(PlayerScript &&) = delete;
PlayerScript & operator=(const PlayerScript &) = delete;
PlayerScript & operator=(PlayerScript &&) = delete;
protected:
void fixed_update(crepe::duration_t dt);
void init();
protected:
PlayerObject * player = nullptr;
};
|