summaryrefslogtreecommitdiffstats
path: root/source/Entities/ProjectileEntity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-16 21:58:17 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-16 21:58:17 +0100
commit6ff6929ca6c599418f98fe750c04a76774075c18 (patch)
tree8587e70a6f698240c4c2c3e693d4d77128b8477c /source/Entities/ProjectileEntity.h
parentSwitchified If, ElseIf statement (diff)
downloadcuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar.gz
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar.bz2
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar.lz
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar.xz
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.tar.zst
cuberite-6ff6929ca6c599418f98fe750c04a76774075c18.zip
Diffstat (limited to 'source/Entities/ProjectileEntity.h')
-rw-r--r--source/Entities/ProjectileEntity.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/source/Entities/ProjectileEntity.h b/source/Entities/ProjectileEntity.h
index f62b53a42..959e81ae5 100644
--- a/source/Entities/ProjectileEntity.h
+++ b/source/Entities/ProjectileEntity.h
@@ -34,6 +34,7 @@ public:
pkEnderPearl = 65,
pkExpBottle = 75,
pkSplashPotion = 73,
+ pkFirework = 76,
pkWitherSkull = 66,
pkFishingFloat = 90,
} ;
@@ -159,6 +160,7 @@ protected:
/// Timer for pickup collection animation or five minute timeout
float m_Timer;
+ /// Timer for client arrow position confirmation via TeleportEntity
float m_HitGroundTimer;
/// If true, the arrow is in the process of being collected - don't go to anyone else
@@ -262,6 +264,59 @@ protected:
+class cExpBottleEntity :
+ public cProjectileEntity
+{
+ typedef cProjectileEntity super;
+
+public:
+
+ // tolua_end
+
+ CLASS_PROTODEF(cExpBottleEntity);
+
+ cExpBottleEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d & a_Speed);
+
+protected:
+
+ // cProjectileEntity overrides:
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) override;
+
+ // 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);
+
+protected:
+
+ // cProjectileEntity overrides:
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) override;
+ virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk) override;
+
+ // tolua_begin
+
+};
+
+
+
+
+
class cGhastFireballEntity :
public cProjectileEntity
{