Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
committerStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
commitcc18095cded14f5e7e3f049e47fca2224134b647 (patch)
tree2a057f4836925083a19988d571dc0664925c9e48 /src/core/info.h
parentbadfb31888a6bd62e0a019b3f3dec517df4121ec (diff)
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/core/info.h')
-rw-r--r--src/core/info.h17
1 files changed, 16 insertions, 1 deletions
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;