2014-04-26 20:50:05 -04:00
|
|
|
//
|
2014-04-27 20:03:06 -04:00
|
|
|
// FireworkEntity.h
|
2014-04-26 20:50:05 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ProjectileEntity.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-26 20:58:06 -04:00
|
|
|
// tolua_begin
|
|
|
|
|
2014-04-26 20:50:05 -04:00
|
|
|
class cFireworkEntity :
|
2014-04-27 20:03:06 -04:00
|
|
|
public cProjectileEntity
|
2014-04-26 20:50:05 -04:00
|
|
|
{
|
|
|
|
typedef cProjectileEntity super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// tolua_end
|
|
|
|
|
|
|
|
CLASS_PROTODEF(cFireworkEntity);
|
|
|
|
|
|
|
|
cFireworkEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const cItem & a_Item);
|
|
|
|
const cItem & GetItem(void) const { return m_FireworkItem; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
// cProjectileEntity overrides:
|
|
|
|
virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int m_ExplodeTimer;
|
|
|
|
cItem m_FireworkItem;
|
|
|
|
|
2014-04-27 12:42:31 -04:00
|
|
|
}; // tolua_export
|