Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;