X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fai%2FAutopilot.h;fp=src%2Fai%2FAutopilot.h;h=b15448ea3a117be6469cd533b38be7c96c6275e0;hp=0000000000000000000000000000000000000000;hb=ffd31714f3edb64ebe16b65878750c6cc5c7e884;hpb=699437a474de8b87ccb6749d44adf740e680d620 diff --git a/src/ai/Autopilot.h b/src/ai/Autopilot.h new file mode 100644 index 0000000..b15448e --- /dev/null +++ b/src/ai/Autopilot.h @@ -0,0 +1,35 @@ +#ifndef SPACE_AUTOPILOT_H_ +#define SPACE_AUTOPILOT_H_ + +#include "../graphics/Vector.h" + + +namespace space { + +class Camera; +class Canvas; +class Ship; + +class Autopilot { + +public: + Autopilot(Ship &ctrl, const Vector &target); + +public: + void Update(float deltaT); + + void Render(Canvas &, const Camera &) const; + +private: + Ship *ctrl; + const Vector *target; + + // cache members for debug drawing + Vector planFrom; + Vector planTo; + +}; + +} + +#endif