diff options
author | archshift <admin@archshift.com> | 2014-04-27 02:02:47 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-27 02:02:47 +0200 |
commit | de23a115a5a33a864111262f4dae08b524af422f (patch) | |
tree | 3dadd44a4ddd905ae8cadcdf39619e312744ff6e /src/Entities/ProjectileEgg.h | |
parent | Moved cArrowEntity out of ProjectileEntity.h (diff) | |
download | cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar.gz cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar.bz2 cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar.lz cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar.xz cuberite-de23a115a5a33a864111262f4dae08b524af422f.tar.zst cuberite-de23a115a5a33a864111262f4dae08b524af422f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ProjectileEgg.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Entities/ProjectileEgg.h b/src/Entities/ProjectileEgg.h new file mode 100644 index 000000000..464526dfc --- /dev/null +++ b/src/Entities/ProjectileEgg.h @@ -0,0 +1,39 @@ +// +// ProjectileEgg.h +// + +#pragma once + +#include "ProjectileEntity.h" + + + + + +class cThrownEggEntity : +public cProjectileEntity +{ + typedef cProjectileEntity super; + +public: + + // tolua_end + + CLASS_PROTODEF(cThrownEggEntity); + + cThrownEggEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d & a_Speed); + +protected: + + // tolua_end + + // cProjectileEntity overrides: + virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override; + virtual void OnHitEntity (cEntity & a_EntityHit, const Vector3d & a_HitPos) override; + + // Randomly decides whether to spawn a chicken where the egg lands. + void TrySpawnChicken(const Vector3d & a_HitPos); + + // tolua_begin + +} ;
\ No newline at end of file |