From 5f74a6b0f3e84ec00e68cda63da6e66df33a8149 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Nov 2013 16:01:21 +0000 Subject: Added support for NPC patrol routes. --- src/game/base/shipmodel.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/game/base/shipmodel.h') diff --git a/src/game/base/shipmodel.h b/src/game/base/shipmodel.h index ef37cbf..2231fea 100644 --- a/src/game/base/shipmodel.h +++ b/src/game/base/shipmodel.h @@ -114,6 +114,14 @@ public: return shipmodel_radius; } + /** + * @brief name used for NPCs with this ship model + * */ + inline const std::string & npc_name() const + { + return shipmodel_npc_name; + } + /// entity template inline const Template *model_template() const { @@ -231,6 +239,14 @@ protected: shipmodel_angular_damping = angular_damping; } + /** + * @brief set the name used for NPCs with this ship model + * */ + inline void set_npc_name(const std::string name) + { + shipmodel_npc_name.assign(name); + } + public: /** * @brief generate specifications info. @@ -279,6 +295,8 @@ private: const Template *shipmodel_template; + std::string shipmodel_npc_name; + /* --- static ----------------------------------------------------- */ static core::InfoType *shipmodel_infotype; -- cgit v1.2.3