diff options
Diffstat (limited to 'src/game/base/shipmodel.h')
-rw-r--r-- | src/game/base/shipmodel.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/game/base/shipmodel.h b/src/game/base/shipmodel.h index 64244fc..709a1d6 100644 --- a/src/game/base/shipmodel.h +++ b/src/game/base/shipmodel.h @@ -102,12 +102,18 @@ public: return shipmodel_maxcargo; } - /// maximum armor amount + /// maximal armor strength inline const float maxarmor() const { return shipmodel_maxarmor; } + /// maximal shield strength + inline const float maxshield() const + { + return shipmodel_maxshield; + } + /// ship radius inline const float radius() const { @@ -179,12 +185,18 @@ protected: // shipmodel_maxspeed = maxspeed; // } - /// set maximum armor amount + /// set maximal armor strength inline void set_maxarmor(const float maxarmor) { shipmodel_maxarmor = maxarmor; } + /// set maximal shield strength + inline void set_maxshield(const float maxshield) + { + shipmodel_maxshield = maxshield; + } + /// set size of the cargo hold inline void set_maxcargo(const float maxcargo) { |