From cc18095cded14f5e7e3f049e47fca2224134b647 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Sep 2010 19:44:13 +0000 Subject: text rendering cleanups, inventory capacity & cargo volume --- src/core/info.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/core/info.h') diff --git a/src/core/info.h b/src/core/info.h index 4b9c445..b3fa58f 100644 --- a/src/core/info.h +++ b/src/core/info.h @@ -95,6 +95,10 @@ public: inline const long price() const { return info_price; } + + inline const float volume() const { + return info_volume; + } /** * @brief timestamp @@ -107,7 +111,9 @@ public: return info_timestamp; } - /// text description + /** + * @brief text description + */ inline const Text & text() const { return info_text; } @@ -122,8 +128,16 @@ public: void set_model(const model::Model *model); + /** + * @brief associated price, in credits + */ void set_price(const long price); + /** + * @brief associated volume, in cubic meters + */ + void set_volume(const float volume); + /// set the timestamp void set_timestamp(const unsigned long timestamp); @@ -159,6 +173,7 @@ private: unsigned int info_id; long info_price; + float info_volume; unsigned long info_timestamp; std::string info_modelname; -- cgit v1.2.3