diff options
author | Stijn Buys <ingar@osirion.org> | 2013-10-14 20:33:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-10-14 20:33:50 +0000 |
commit | aabb379d84afab3679acc6dc4472d886dae88f39 (patch) | |
tree | e015d1c0b1ce904f543f50a905634cae68ddcda8 /src/game/base/ship.h | |
parent | 0ae585bf90031a95cec165bb6f0e25e337b9ecff (diff) |
Separated autopilot from AI code, added basic formation flying.
Diffstat (limited to 'src/game/base/ship.h')
-rw-r--r-- | src/game/base/ship.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/base/ship.h b/src/game/base/ship.h index 1de208d..ad2c71b 100644 --- a/src/game/base/ship.h +++ b/src/game/base/ship.h @@ -181,6 +181,18 @@ public: void set_spawn(core::Entity *spawn); +protected: + + /** + * @brief autopilot goto target + * */ + void frame_autopilot_goto(const unsigned long elapsed, const core::Entity *target); + + /** + * @brief autopilot formation flying + * */ + void frame_autopilot_formation(const unsigned long elapsed, const core::Entity *target); + private: JumpPoint *find_closest_jumppoint(); |