-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.hpp
34 lines (27 loc) · 942 Bytes
/
Player.hpp
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
#ifndef PLAYER_HPP
#define PLAYER_HPP
#include <string>
#include "RuntimePoint.hpp"
#include "Triple.hpp"
class Player : public virtual RuntimePoint {
public:
bool control_f,
control_b,
control_l,
control_r,
control_rot_l,
control_rot_r,
control_jump,
control_shoot;
Player(const Player &);
Player(
std::string name = "",
Triple pos = Triple(), double ang = 0,
Triple vel = Triple(), double vrot = 0
);
// TODO: destructor!
virtual void draw() const;
virtual void steer(unsigned int ticks, unsigned int delta_ticks);
virtual void update();
};
#endif