]> git.localhorst.tv Git - space.git/blob - src/ai/Autopilot.h
added autopilot that sucks
[space.git] / src / ai / Autopilot.h
1 #ifndef SPACE_AUTOPILOT_H_
2 #define SPACE_AUTOPILOT_H_
3
4 #include "../graphics/Vector.h"
5
6
7 namespace space {
8
9 class Camera;
10 class Canvas;
11 class Ship;
12
13 class Autopilot {
14
15 public:
16         Autopilot(Ship &ctrl, const Vector<float> &target);
17
18 public:
19         void Update(float deltaT);
20
21         void Render(Canvas &, const Camera &) const;
22
23 private:
24         Ship *ctrl;
25         const Vector<float> *target;
26
27         // cache members for debug drawing
28         Vector<float> planFrom;
29         Vector<float> planTo;
30
31 };
32
33 }
34
35 #endif