From fdcad8a72d6f66d62dcd5893f9ba7bf421043a61 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 2 Feb 2013 23:55:29 +0000 Subject: Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorld Using templates to generate ForEach* functions instead of MACROS Better error reporting in ForEach* functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1191 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source/Entity.cpp') diff --git a/source/Entity.cpp b/source/Entity.cpp index e3af6d4d3..43f9e9431 100644 --- a/source/Entity.cpp +++ b/source/Entity.cpp @@ -70,7 +70,19 @@ cEntity::~cEntity() -CLASS_DEF_GETCLASS(cEntity); +const char * cEntity::GetClass(void) const +{ + return "cEntity"; +} + + + + + +const char * cEntity::GetClassStatic(void) +{ + return "cEntity"; +} -- cgit v1.2.3