From 89c0bc88bd4ebdc44dfb99235609c90e968af533 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 15 Nov 2009 14:20:13 +0000 Subject: added core::Info id, changed network info message, updated entity network message to include the info id --- src/core/entity.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/entity.h') 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; -- cgit v1.2.3