Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-10 01:48:41 +0000
committerStijn Buys <ingar@osirion.org>2013-11-10 01:48:41 +0000
commit9dc3cc532820349a0f0e087afb60132927fd3411 (patch)
treebfdc9d515df65cde07f9fe217e7c87ed1556801f /src/game/base/npc.h
parentd4f8d1c8fde01a58bc757b588c9850e69225bc24 (diff)
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.
Diffstat (limited to 'src/game/base/npc.h')
-rw-r--r--src/game/base/npc.h5
1 files changed, 5 insertions, 0 deletions
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;