diff options
author | Stijn Buys <ingar@osirion.org> | 2013-09-27 21:12:53 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-09-27 21:12:53 +0000 |
commit | ea7c9d3b78db9b40144f5979c1de033b6d06ba98 (patch) | |
tree | 9533e7bd93c9eb02cfb7dc795f2bd4bf1e2d110b /src/game/base/template.h | |
parent | 6ae26b0fabe80dfbc4e3e50309a94ff1149343ea (diff) |
Adds a default armor setting to ship templates.
Diffstat (limited to 'src/game/base/template.h')
-rw-r--r-- | src/game/base/template.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |