blob: 70915f4d01538fa408a556011317c3b1ad4816e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
//
// FireworkEntity.h
//
#pragma once
#include "ProjectileEntity.h"
// tolua_begin
class cFireworkEntity :
public cProjectileEntity
{
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 /*override*/s:
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;
}; // tolua_export
|