diff options
Diffstat (limited to 'src/game/base/patrol.h')
-rw-r--r-- | src/game/base/patrol.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game/base/patrol.h b/src/game/base/patrol.h index a747a89..debd0e4 100644 --- a/src/game/base/patrol.h +++ b/src/game/base/patrol.h @@ -84,16 +84,26 @@ public: return patrol_profile; } - inline WayPoint * waypoint() { + inline WayPoint * waypoint() const { if (patrol_waypoint_current == patrol_waypoints.end()) { return 0; } else { return (*patrol_waypoint_current); } } + + inline NPC *leader() const { + return patrol_leader; + } + + inline Faction *faction() const { + return patrol_faction; + } void set_profile(const NPC::Profile profile); + void set_faction(Faction *faction); + WayPoint *add_waypoint(); virtual void validate(); @@ -116,6 +126,10 @@ private: NPC::Profile patrol_profile; NPC *patrol_leader; + + unsigned long patrol_launch_timeout; + + Faction *patrol_faction; }; } // namespace game |