Go to the source code of this file.
#define CLASS_PROTODEF |
( |
|
classname | ) |
|
Value:virtual bool IsA(const char * a_ClassName) const override\
{ \
return ((a_ClassName != nullptr) && ((strcmp(a_ClassName, #classname) == 0) || super::IsA(a_ClassName))); \
} \
virtual const char * GetClass(void) const override \
{ \
return #classname; \
} \
static const char * GetClassStatic(void) \
{ \
return #classname; \
} \
virtual const char * GetParentClass(void) const override \
{ \
return super::GetClass(); \
}
Definition at line 11 of file Entity.h.
#define GET_AND_VERIFY_CURRENT_CHUNK |
( |
|
ChunkVarName, |
|
|
|
X, |
|
|
|
Z |
|
) |
| |
Value: do { \
if ((ChunkVarName ==
nullptr) || !ChunkVarName->
IsValid()) \
{ \
return; \
} \
} while (false)
bool IsValid(void) const
Returns true iff the chunk block data is valid (loaded / generated)
cChunk * GetNeighborChunk(int a_BlockX, int a_BlockZ)
Returns the chunk into which the specified block belongs, by walking the neighbors.
Definition at line 34 of file Entity.h.
#define POS_TOINT GetPosition().Floor() |
#define POSX_TOINT FloorC(GetPosX()) |
#define POSY_TOINT FloorC(GetPosY()) |
#define POSZ_TOINT FloorC(GetPosZ()) |