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>2009-11-12 20:53:35 +0000
committerStijn Buys <ingar@osirion.org>2009-11-12 20:53:35 +0000
commit5ddb64795cc959916eeedbec8dc3f65c06f49698 (patch)
treeee7231607b0bf49528570e5d3badcdedcb33f54e /src/core/entity.h
parent3605a7bd8fffebfba38d31025b6f33cb82626a3b (diff)
initial commodities and entity inventory, bump network proto version to 18
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 92cb5ab..ed0b1f8 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -26,6 +26,7 @@ class EntityControlable;
#include "core/extension.h"
#include "core/descriptions.h"
+#include "core/inventory.h"
#include "core/player.h"
#include "core/zone.h"
@@ -169,6 +170,11 @@ public:
return entity_visible;
}
+ ///entity inventory
+ inline Inventory *inventory() {
+ return entity_inventory;
+ }
+
/// entity menus
inline Menus &menus() {
return entity_menus;
@@ -303,6 +309,14 @@ public:
return entity_color_second;
}
+ /**
+ * @brief add an inventory to this entity
+ * Entity takes ownership over the inventory pointer
+ */
+ void set_inventory(Inventory *inventory);
+
+ void set_info(Info *info);
+
/* ---- deserializers -------------------------------------- */
/// receive a client-to-server update from a stream
@@ -390,6 +404,9 @@ private:
Zone* entity_oldzone;
Menus entity_menus;
+
+ Inventory* entity_inventory;
+ Info* entity_info;
Extension* entity_extension[4];