intravenous
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/ship.h Sat Apr 21 22:42:43 2012 +0300 1.3 @@ -0,0 +1,31 @@ 1.4 +#ifndef SHIP_H_ 1.5 +#define SHIP_H_ 1.6 + 1.7 +#include <vmath/vmath.h> 1.8 +#include "game.h" 1.9 + 1.10 +class Ship { 1.11 +private: 1.12 + Vector3 pos, velocity; 1.13 + Quaternion rot; 1.14 + //double theta, phi; 1.15 + double friction; 1.16 + 1.17 +public: 1.18 + Ship(); 1.19 + 1.20 + void accelerate(double a); 1.21 + void turn(double yaw, double pitch); 1.22 + 1.23 + void update(time_sec_t dt); 1.24 + 1.25 + const Vector3 &get_position() const; 1.26 + Vector3 get_direction() const; 1.27 + 1.28 + Matrix4x4 get_matrix() const; 1.29 + 1.30 + void dbg_draw() const; 1.31 +}; 1.32 + 1.33 + 1.34 +#endif // SHIP_H_