summaryrefslogtreecommitdiffstats
path: root/source/Entities/ProjectileEntity.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-01 22:40:35 +0200
committermadmaxoft <github@xoft.cz>2013-09-01 22:40:35 +0200
commita884fbb91937d3243c15477428a31cc764d03a84 (patch)
treeb4d62a5c2a8b36f8621274ca9dda10c77ab34fd8 /source/Entities/ProjectileEntity.h
parentMade cBoundingBox class inclusive in both coord edges. (diff)
downloadcuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar.gz
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar.bz2
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar.lz
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar.xz
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.tar.zst
cuberite-a884fbb91937d3243c15477428a31cc764d03a84.zip
Diffstat (limited to 'source/Entities/ProjectileEntity.h')
-rw-r--r--source/Entities/ProjectileEntity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Entities/ProjectileEntity.h b/source/Entities/ProjectileEntity.h
index 95dc00abc..da82c82ea 100644
--- a/source/Entities/ProjectileEntity.h
+++ b/source/Entities/ProjectileEntity.h
@@ -50,6 +50,9 @@ public:
/// Called by the physics blocktracer when the entity hits a solid block, the block's coords and the face hit is given
virtual void OnHitSolidBlock(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace);
+ /// Called by the physics blocktracer when the entity hits another entity
+ virtual void OnHitEntity(cEntity & a_EntityHit) {}
+
// tolua_begin
/// Returns the kind of the projectile (fast class identification)
@@ -140,6 +143,7 @@ protected:
// cProjectileEntity overrides:
virtual void SpawnOn(cClientHandle & a_Client) override;
+ virtual void OnHitEntity(cEntity & a_EntityHit) override;
// tolua_begin
} ;