2014-03-14 21:45:25 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Entity.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// tolua_begin
|
|
|
|
class cHangingEntity :
|
|
|
|
public cEntity
|
|
|
|
{
|
|
|
|
// tolua_end
|
|
|
|
typedef cEntity super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cHangingEntity)
|
2014-03-14 21:45:25 -04:00
|
|
|
|
|
|
|
cHangingEntity(eEntityType a_EntityType, eBlockFace a_BlockFace, double a_X, double a_Y, double a_Z);
|
|
|
|
|
|
|
|
/** Returns the orientation from the hanging entity */
|
|
|
|
eBlockFace GetDirection() const { return m_BlockFace; } // tolua_export
|
|
|
|
|
|
|
|
/** Set the orientation from the hanging entity */
|
2014-09-25 13:28:11 -04:00
|
|
|
void SetDirection(eBlockFace a_BlockFace); // tolua_export
|
2014-03-14 21:45:25 -04:00
|
|
|
|
|
|
|
/** Returns the X coord. */
|
|
|
|
int GetTileX() const { return POSX_TOINT; } // tolua_export
|
|
|
|
|
|
|
|
/** Returns the Y coord. */
|
|
|
|
int GetTileY() const { return POSY_TOINT; } // tolua_export
|
|
|
|
|
|
|
|
/** Returns the Z coord. */
|
|
|
|
int GetTileZ() const { return POSZ_TOINT; } // tolua_export
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
|
2014-07-22 18:36:13 -04:00
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override {}
|
2014-03-14 21:45:25 -04:00
|
|
|
|
|
|
|
eBlockFace m_BlockFace;
|
|
|
|
|
|
|
|
}; // tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|