5 #include "../ClientHandle.h" 12 super(etTNT, a_Pos, 0.98, 0.98),
13 m_FuseTicks(a_FuseTicks)
double GetPosY(void) const
double GetPosX(void) const
void SendSpawnObject(const cEntity &a_Entity, char a_ObjectType, int a_ObjectData, Byte a_Yaw, Byte a_Pitch)
void Explode(void)
Explode the tnt.
virtual void Destroy(bool a_ShouldBroadcast=true)
Destroys the entity and schedules it for memory freeing; if a_ShouldBroadcast is set to true...
bool m_bDirtyHead
Stores whether head yaw has been set manually.
bool m_bDirtyOrientation
Stores whether our yaw / pitch / roll (body orientation) has been set manually.
bool IsTicking(void) const
Returns true if the entity is valid and ticking.
void SetGravity(float a_Gravity)
cTNTEntity(Vector3d a_Pos, int a_FuseTicks=80)
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
virtual void DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_BlockY, double a_BlockZ, bool a_CanCauseFire, eExplosionSource a_Source, void *a_SourceData) override
Does an explosion with the specified strength at the specified coordinates.
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
void SetAirDrag(float a_AirDrag)
double GetPosZ(void) const
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk)
int m_FuseTicks
How much ticks is left, while the tnt will explode.
virtual void BroadcastMovementUpdate(const cClientHandle *a_Exclude=nullptr)
Updates clients of changes in the entity.