diff options
author | archshift <admin@archshift.com> | 2014-04-27 02:35:31 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-27 02:35:31 +0200 |
commit | de7eaa573560253c9e78fbfa6614cd60763383bf (patch) | |
tree | f2f5837b30a6578929c8a754da2bf9f542fe82e3 /src/Entities/ProjectileFireCharge.h | |
parent | Moved cThrownSnowballEntity out of ProjectileEntity.h (diff) | |
download | cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar.gz cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar.bz2 cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar.lz cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar.xz cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.tar.zst cuberite-de7eaa573560253c9e78fbfa6614cd60763383bf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ProjectileFireCharge.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Entities/ProjectileFireCharge.h b/src/Entities/ProjectileFireCharge.h new file mode 100644 index 000000000..6c088c547 --- /dev/null +++ b/src/Entities/ProjectileFireCharge.h @@ -0,0 +1,36 @@ +// +// ProjectileFireCharge.h +// + +#pragma once + +#include "ProjectileEntity.h" + + + + + +class cFireChargeEntity : +public cProjectileEntity +{ + typedef cProjectileEntity super; + +public: + + // tolua_end + + CLASS_PROTODEF(cFireChargeEntity); + + cFireChargeEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d & a_Speed); + +protected: + + void Explode(int a_BlockX, int a_BlockY, int a_BlockZ); + + // cProjectileEntity overrides: + virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override; + virtual void OnHitEntity(cEntity & a_EntityHit, const Vector3d & a_HitPos) override; + + // tolua_begin + +} ;
\ No newline at end of file |