diff options
author | archshift <admin@archshift.com> | 2014-04-27 02:41:07 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-27 02:41:07 +0200 |
commit | cb93a57963257a905334489fcca8d164999dcf50 (patch) | |
tree | 47d94b792208cc5f832da5f4c31f39ade22bdf97 /src/Entities/ProjectileGhastFireball.h | |
parent | Moved cFireChargeEntity out of ProjectileEntity.h (diff) | |
download | cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar.gz cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar.bz2 cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar.lz cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar.xz cuberite-cb93a57963257a905334489fcca8d164999dcf50.tar.zst cuberite-cb93a57963257a905334489fcca8d164999dcf50.zip |
Diffstat (limited to 'src/Entities/ProjectileGhastFireball.h')
-rw-r--r-- | src/Entities/ProjectileGhastFireball.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Entities/ProjectileGhastFireball.h b/src/Entities/ProjectileGhastFireball.h new file mode 100644 index 000000000..7aee1689a --- /dev/null +++ b/src/Entities/ProjectileGhastFireball.h @@ -0,0 +1,38 @@ +// +// ProjectileGhastFireball.h +// + +#pragma once + +#include "ProjectileEntity.h" + + + + + +class cGhastFireballEntity : +public cProjectileEntity +{ + typedef cProjectileEntity super; + +public: + + // tolua_end + + CLASS_PROTODEF(cGhastFireballEntity); + + cGhastFireballEntity(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; + + // TODO: Deflecting the fireballs by arrow- or sword- hits + + // tolua_begin + +} ;
\ No newline at end of file |