summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-26 23:26:59 +0200
committerMattes D <github@xoft.cz>2014-04-26 23:26:59 +0200
commitda931da6037279826a52980f9335e189c370d4d2 (patch)
tree2935aeea2eab9d1ce7dbf571087d905a4681fae3 /src/Entities/Entity.h
parentMerge pull request #863 from mc-server/chunkysparsing (diff)
parentMore small fixes. (diff)
downloadcuberite-da931da6037279826a52980f9335e189c370d4d2.tar
cuberite-da931da6037279826a52980f9335e189c370d4d2.tar.gz
cuberite-da931da6037279826a52980f9335e189c370d4d2.tar.bz2
cuberite-da931da6037279826a52980f9335e189c370d4d2.tar.lz
cuberite-da931da6037279826a52980f9335e189c370d4d2.tar.xz
cuberite-da931da6037279826a52980f9335e189c370d4d2.tar.zst
cuberite-da931da6037279826a52980f9335e189c370d4d2.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 86efc5a98..9b8011b55 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -270,6 +270,9 @@ public:
/// Returns the hitpoints that this pawn can deal to a_Receiver using its equipped items
virtual int GetRawDamageAgainst(const cEntity & a_Receiver);
+ /** Returns whether armor will protect against the passed damage type **/
+ virtual bool ArmorCoversAgainst(eDamageType a_DamageType);
+
/// Returns the hitpoints out of a_RawDamage that the currently equipped armor would cover
virtual int GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_DamageType, int a_RawDamage);