summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileFirework.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-27 02:50:05 +0200
committerarchshift <admin@archshift.com>2014-04-27 02:50:05 +0200
commite3c3795aa40e59af86d90b45b209f367563942fb (patch)
tree1b84c8e7098a2f912e15f7645d5d4b689b19cdcb /src/Entities/ProjectileFirework.h
parentMoved cGhastFireballEntity out of ProjectileEntity.h (diff)
downloadcuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar.gz
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar.bz2
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar.lz
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar.xz
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.tar.zst
cuberite-e3c3795aa40e59af86d90b45b209f367563942fb.zip
Diffstat (limited to 'src/Entities/ProjectileFirework.h')
-rw-r--r--src/Entities/ProjectileFirework.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Entities/ProjectileFirework.h b/src/Entities/ProjectileFirework.h
new file mode 100644
index 000000000..74a50264b
--- /dev/null
+++ b/src/Entities/ProjectileFirework.h
@@ -0,0 +1,40 @@
+//
+// ProjectileFirework.h
+//
+
+#pragma once
+
+#include "ProjectileEntity.h"
+
+
+
+
+
+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 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;
+
+ // tolua_begin
+
+}; \ No newline at end of file