From 553c7b9bf9b477544f28123eaeb2ea5714495086 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 9 Nov 2013 20:36:48 +0000 Subject: Moved profile definition from NPC to Patrol. --- src/game/base/patrol.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/game/base/patrol.h') diff --git a/src/game/base/patrol.h b/src/game/base/patrol.h index e4ba19b..cc3bf61 100644 --- a/src/game/base/patrol.h +++ b/src/game/base/patrol.h @@ -27,6 +27,17 @@ namespace game class Patrol: public core::Entity { public: + /** + * @brief Definse the general profile of the patrol + * The NPC profile is set at creating time and can not be altered. + * + * Freelancer fallback value + * Convoy Trade convoy member, prefers trade routes + * Patrol Police or military, prefers patrol routes + * Guard Guard an area + * Wingman wingman, prefers protecting its leader + * */ + enum Profile { ProfileFreelancer = 0, ProfileConvoy = 1, ProfilePatrol = 2, ProfileGuard = 3, ProfileWingman = 4 }; /* --- WayPoint -------------------------------------------- */ @@ -84,7 +95,7 @@ public: Patrol(); virtual ~Patrol(); - inline const NPC::Profile profile() const { + inline const Profile profile() const { return patrol_profile; } @@ -104,7 +115,7 @@ public: return patrol_faction; } - void set_profile(const NPC::Profile profile); + void set_profile(const Profile profile); void set_faction(Faction *faction); @@ -118,7 +129,7 @@ public: void add_member(NPC *npc); - void erase_member(NPC *npc); + void erase_member(NPC *npc); private: void set_leader(); @@ -133,7 +144,7 @@ private: NPCTypes patrol_npctypes; - NPC::Profile patrol_profile; + Profile patrol_profile; NPC *patrol_leader; -- cgit v1.2.3