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/inventory.h')
-rw-r--r--src/core/inventory.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/core/inventory.h b/src/core/inventory.h
index c924683..c715116 100644
--- a/src/core/inventory.h
+++ b/src/core/inventory.h
@@ -55,12 +55,31 @@ public:
*/
Item *find(const Info *info);
- inline Items &items() {
+ inline Items &items() {
return inventory_items;
};
+
+ /**
+ * @brief return the timestamp
+ */
+ inline const unsigned long timestamp() const {
+ return inventory_timestamp;
+ }
+
+ /**
+ * @brief set the timestamp
+ */
+ void set_timestamp(const unsigned long timestamp);
+
+ /**
+ * @brief set the timestamp to the current game time
+ */
+ void mark();
private:
- Items inventory_items;
+ Items inventory_items;
+ // timestamp when inventory was last updated
+ unsigned long inventory_timestamp;
};
} // namsepace core