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-09 20:36:48 +0000
committerStijn Buys <ingar@osirion.org>2013-11-09 20:36:48 +0000
commit553c7b9bf9b477544f28123eaeb2ea5714495086 (patch)
treeb020a1795e788ac97e9825ae9fc7863bebba744f /src/game/base/patrol.h
parent2218c7094ad6dc40b200274ebffdc9fb4c1a8e0c (diff)
Moved profile definition from NPC to Patrol.
Diffstat (limited to 'src/game/base/patrol.h')
-rw-r--r--src/game/base/patrol.h19
1 files changed, 15 insertions, 4 deletions
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;