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-18 18:50:55 +0000
committerStijn Buys <ingar@osirion.org>2010-09-18 18:50:55 +0000
commit9c91a9767b570fdc3c3e19e1f452f9a8257f9999 (patch)
tree9ac10114a3378134ea19dac3d7f7639532c3bf5a /src/core/inventory.cc
parentfc4809e41bc5694231046eb2fd4c324c4daba13f (diff)
trade updates
Diffstat (limited to 'src/core/inventory.cc')
-rw-r--r--src/core/inventory.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/inventory.cc b/src/core/inventory.cc
index e1a74dc..6afa76f 100644
--- a/src/core/inventory.cc
+++ b/src/core/inventory.cc
@@ -4,6 +4,7 @@
the terms of the GNU General Public License version 2
*/
+#include "core/application.h"
#include "core/inventory.h"
#include "sys/sys.h"
@@ -14,12 +15,23 @@ namespace core
Inventory::Inventory()
{
-
+ inventory_timestamp = 0;
}
Inventory::~Inventory()
{
clear();
+ inventory_timestamp = 0;
+}
+
+void Inventory::set_timestamp(const unsigned long timestamp)
+{
+ inventory_timestamp = timestamp;
+}
+
+void Inventory::mark()
+{
+ inventory_timestamp = core::game()->timestamp();
}
void Inventory::add(Item *item)