53 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
virtual void HandlePhysics(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Handles the physics of the entity - updates position based on speed, updates speed based on environme...
int GetTicksToExplosion(void) const
Returns the number of ticks left until the firework explosion.
void SetItem(const cItem &a_Item)
Sets the item that is used to create the rocket (has all the firework effects on it)
const cItem & GetItem(void) const
Returns the item used to create the rocket (has all the firework effects on it)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
void SetTicksToExplosion(int a_TicksToExplosion)
Sets the number of ticks left until the firework explosion.
cFireworkEntity(cEntity *a_Creator, Vector3d a_Pos, const cItem &a_Item)
cProjectileEntity(eKind a_Kind, cEntity *a_Creator, Vector3d a_Pos, float a_Width, float a_Height)