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-15 14:20:13 +0000
committerStijn Buys <ingar@osirion.org>2009-11-15 14:20:13 +0000
commit89c0bc88bd4ebdc44dfb99235609c90e968af533 (patch)
tree1f381edf91aff4da09ea3b1515107dd20c19a71e /src/core/entity.h
parentb513c7d9bf6fba4a26e734ce405996f665d9c835 (diff)
added core::Info id, changed network info message, updated entity network message to include the info id
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 09839c8..ae2585d 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -165,6 +165,11 @@ public:
inline Inventory *inventory() {
return entity_inventory;
}
+
+ /// entity info
+ inline const Info *info() const {
+ return entity_info;
+ }
/// entity menus
inline Menus &menus() {
@@ -333,9 +338,18 @@ public:
/// erase an entity from the registry and delete it
static void erase(unsigned int entity_id);
+ /// print the list header
+ static void list_header();
+
+ /// list the entity registry
+ static void list(const Entity *entity);
+
/// list the entity registry
static void list();
+ /// clear the entity registry
+ static void clear();
+
/// the entity registry
static inline Registry & registry() {
return entity_registry;