From ea7c9d3b78db9b40144f5979c1de033b6d06ba98 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 27 Sep 2013 21:12:53 +0000 Subject: Adds a default armor setting to ship templates. --- src/game/base/template.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/base/template.h') diff --git a/src/game/base/template.h b/src/game/base/template.h index a89a092..1ae04ab 100644 --- a/src/game/base/template.h +++ b/src/game/base/template.h @@ -28,6 +28,10 @@ public: return template_radius; } + inline const float maxarmor() const { + return template_maxarmor; + } + inline const bool has_color() const { return template_has_color; } @@ -67,6 +71,8 @@ protected: void set_color(const math::Color &color); void set_color_second(const math::Color &color_second); + + void set_maxarmor(const float maxarmor); public: /* --- static ----------------------------------------------------- */ @@ -91,6 +97,8 @@ private: math::Color template_color_second; bool template_has_color_second; + float template_maxarmor; + /* --- static ----------------------------------------------------- */ static core::InfoType *template_infotype; -- cgit v1.2.3