diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-09 20:15:06 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-09 20:15:06 +0000 |
commit | 2218c7094ad6dc40b200274ebffdc9fb4c1a8e0c (patch) | |
tree | 97a89e9ae8b5302ffeb80cad85b9e95daf51f019 /src/game/base/patrol.h | |
parent | e69ce33b0436d0fa9b81e032442026a43cbbbb05 (diff) |
Removed shipmodel npcname support,
made Patrols load NPC types instead of ship models,
replaces patrol [ship] subsection with a [npc] subsection.
Diffstat (limited to 'src/game/base/patrol.h')
-rw-r--r-- | src/game/base/patrol.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/base/patrol.h b/src/game/base/patrol.h index 0e03234..e4ba19b 100644 --- a/src/game/base/patrol.h +++ b/src/game/base/patrol.h @@ -11,6 +11,7 @@ #include "base/faction.h" #include "base/cargo.h" #include "base/npc.h" +#include "base/npctype.h" namespace game { @@ -76,6 +77,8 @@ public: typedef std::list<WayPoint *> WayPoints; + typedef std::list<NPCType *> NPCTypes; + typedef std::list<NPC *> Members; Patrol(); @@ -106,6 +109,8 @@ public: void set_faction(Faction *faction); WayPoint *add_waypoint(); + + NPCType *add_npctype(); virtual void validate(); @@ -113,7 +118,7 @@ public: void add_member(NPC *npc); - void erase_member(NPC *npc); + void erase_member(NPC *npc); private: void set_leader(); @@ -126,6 +131,8 @@ private: Members patrol_members; + NPCTypes patrol_npctypes; + NPC::Profile patrol_profile; NPC *patrol_leader; |