summaryrefslogtreecommitdiffstats
path: root/source/Entities/ProjectileEntity.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-03 09:41:31 +0200
committermadmaxoft <github@xoft.cz>2013-09-03 09:41:31 +0200
commit2c5e566fe7de5399fac5588671b2b6f611e6bda6 (patch)
tree884cab11e669836b68389e8cc6df555a6842d3f9 /source/Entities/ProjectileEntity.h
parentAdded cArrowEntity's criticalness to the API. (diff)
downloadcuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar.gz
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar.bz2
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar.lz
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar.xz
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.tar.zst
cuberite-2c5e566fe7de5399fac5588671b2b6f611e6bda6.zip
Diffstat (limited to 'source/Entities/ProjectileEntity.h')
-rw-r--r--source/Entities/ProjectileEntity.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/Entities/ProjectileEntity.h b/source/Entities/ProjectileEntity.h
index 415b64e90..5863b4f10 100644
--- a/source/Entities/ProjectileEntity.h
+++ b/source/Entities/ProjectileEntity.h
@@ -47,8 +47,8 @@ public:
static cProjectileEntity * Create(eKind a_Kind, cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d * a_Speed = NULL);
- /// 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 a solid block, the hit position and the face hit (BLOCK_FACE_) is given
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace);
/// Called by the physics blocktracer when the entity hits another entity
virtual void OnHitEntity(cEntity & a_EntityHit) {}
@@ -179,7 +179,7 @@ protected:
// tolua_end
// cProjectileEntity overrides:
- virtual void OnHitSolidBlock(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace) override;
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) override;
// tolua_begin
@@ -207,7 +207,7 @@ protected:
// tolua_end
// cProjectileEntity overrides:
- virtual void OnHitSolidBlock(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace) override;
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) override;
// tolua_begin
@@ -235,7 +235,7 @@ protected:
// tolua_end
// cProjectileEntity overrides:
- virtual void OnHitSolidBlock(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace) override;
+ virtual void OnHitSolidBlock(const Vector3d & a_HitPos, char a_HitFace) override;
// tolua_begin