Go to the source code of this file.
◆ CLASS_PROTODEF
#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 13 of file Entity.h.
◆ GET_AND_VERIFY_CURRENT_CHUNK
#define GET_AND_VERIFY_CURRENT_CHUNK |
( |
|
ChunkVarName, |
|
|
|
X, |
|
|
|
Z |
|
) |
| |
Value:
do { \
if ((ChunkVarName ==
nullptr) || !ChunkVarName->
IsValid()) \
{ \
return; \
} \
} while (false)
cChunk * GetNeighborChunk(int a_BlockX, int a_BlockZ)
Returns the chunk into which the specified block belongs, by walking the neighbors.
bool IsValid(void) const
Returns true iff the chunk block data is valid (loaded / generated)
Definition at line 36 of file Entity.h.
◆ POS_TOINT
#define POS_TOINT GetPosition().Floor() |
◆ POSX_TOINT
#define POSX_TOINT FloorC(GetPosX()) |
◆ POSY_TOINT
#define POSY_TOINT FloorC(GetPosY()) |
◆ POSZ_TOINT
#define POSZ_TOINT FloorC(GetPosZ()) |