summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-03 08:39:35 +0200
committermadmaxoft <github@xoft.cz>2013-09-03 08:39:35 +0200
commitf7d58944273be0390c9e583eaa5bad0bcfcbfa5d (patch)
treecae36f093ede879f435fd48134b9e674f05dec19 /source/Entities
parentArrows deal damage based on their speed. (diff)
downloadcuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar.gz
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar.bz2
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar.lz
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar.xz
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.tar.zst
cuberite-f7d58944273be0390c9e583eaa5bad0bcfcbfa5d.zip
Diffstat (limited to 'source/Entities')
-rw-r--r--source/Entities/ProjectileEntity.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Entities/ProjectileEntity.h b/source/Entities/ProjectileEntity.h
index bd282d7e7..415b64e90 100644
--- a/source/Entities/ProjectileEntity.h
+++ b/source/Entities/ProjectileEntity.h
@@ -131,6 +131,12 @@ public:
/// Returns true if the specified player can pick the arrow up
bool CanPickup(const cPlayer & a_Player) const;
+ /// Returns true if the arrow is set as critical
+ bool IsCritical(void) const { return m_IsCritical; }
+
+ /// Sets the IsCritical flag
+ void SetIsCritical(bool a_IsCritical) { m_IsCritical = a_IsCritical; }
+
// tolua_end
protected: