intravenous

view src/ship.h @ 1:3ea290d35984

it's never going to finish but wth :)
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Apr 2012 22:42:43 +0300
parents
children 94d4c60af435
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 theta, phi;
12 double friction;
14 public:
15 Ship();
17 void accelerate(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;
25 Matrix4x4 get_matrix() const;
27 void dbg_draw() const;
28 };
31 #endif // SHIP_H_