From 9dc3cc532820349a0f0e087afb60132927fd3411 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 Nov 2013 01:48:41 +0000 Subject: Corrected a bug which prevented the patrol profile from being set correctly, corrected a bug where 'give ship' would forget the last spawn, have NPC ships fire on nearby enemies, made patrol leaders hunt nearby enemies. --- src/game/base/npc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/base/npc.h') diff --git a/src/game/base/npc.h b/src/game/base/npc.h index 8139c9a..68620e1 100644 --- a/src/game/base/npc.h +++ b/src/game/base/npc.h @@ -81,6 +81,11 @@ public: * @brief factory function for wingman NPCs * */ static NPC *add_wingman(Ship *leader); + + /** + * @brief aim at closest enemy in range, returns target + * */ + Ship *target_closest_enemy(); private: Mood npc_mood; -- cgit v1.2.3