26 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
cEntity(eEntityType a_EntityType, Vector3d a_Pos, float a_Width, float a_Height)
void SetFuseTicks(unsigned a_FuseTicks)
Set the fuse ticks until the tnt will explode.
unsigned GetFuseTicks(void) const
Returns the fuse ticks until the tnt will explode.
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.