Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/shipmodel.h')
-rw-r--r--src/game/base/shipmodel.h18
1 files changed, 18 insertions, 0 deletions
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;