5 #include "../ClientHandle.h"
12 Super(etTNT, a_Pos, 0.98f, 0.98f),
13 m_FuseTicks(a_FuseTicks)
void SendSpawnEntity(const cEntity &a_Entity)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk)
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)
double GetPosX(void) const
double GetPosZ(void) const
void Destroy()
Destroys the entity, schedules it for memory freeing and broadcasts the DestroyEntity packet.
double GetPosY(void) const
float GetHeight(void) const
void SetAirDrag(float a_AirDrag)
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
bool m_bDirtyHead
Stores whether head yaw has been set manually.
virtual void BroadcastMovementUpdate(const cClientHandle *a_Exclude=nullptr)
Updates clients of changes in the entity.
unsigned m_FuseTicks
How much ticks is left, while the tnt will explode.
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...
cTNTEntity(Vector3d a_Pos, unsigned a_FuseTicks=80)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
void Explode(void)
Explode the tnt.
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.