intravenous

view src/ship.h @ 3:94d4c60af435

some progress
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 03:35:18 +0300
parents 3ea290d35984
children 2723dc026c4f
line source
1 #ifndef SHIP_H_
2 #define SHIP_H_
4 #include <vmath/vmath.h>
5 #include "game.h"
7 class Ship {
8 private:
9 Vector3 pos, velocity;
10 Quaternion rot;
11 double friction;
13 public:
14 Ship();
16 void accelerate(double a);
17 void accelerate_side(double a);
18 void turn(double yaw, double pitch);
20 void update(time_sec_t dt);
22 const Vector3 &get_position() const;
23 Vector3 get_direction() const;
24 Vector3 get_right() const;
26 Matrix4x4 get_matrix() const;
28 void dbg_draw() const;
29 };
32 #endif // SHIP_H_