diff options
author | madmaxoft <github@xoft.cz> | 2013-09-03 08:39:35 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-03 08:39:35 +0200 |
commit | f7d58944273be0390c9e583eaa5bad0bcfcbfa5d (patch) | |
tree | cae36f093ede879f435fd48134b9e674f05dec19 /source/Entities/ProjectileEntity.h | |
parent | Arrows deal damage based on their speed. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Entities/ProjectileEntity.h | 6 |
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: |