summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-10-31 23:18:27 +0100
committerAlexander Harkness <me@bearbin.net>2015-10-31 23:18:27 +0100
commitb13fd00ec44cc3fc4ad0395b3b9df04de00617b5 (patch)
tree671987e9a48544fd0fc37135732feebdca697caa /src/Entities/Pawn.h
parentMerge pull request #2549 from cuberite/TouchGround (diff)
parentImplemented the FireResistence potion effects. (diff)
downloadcuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar.gz
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar.bz2
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar.lz
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar.xz
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.tar.zst
cuberite-b13fd00ec44cc3fc4ad0395b3b9df04de00617b5.zip
Diffstat (limited to 'src/Entities/Pawn.h')
-rw-r--r--src/Entities/Pawn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h
index e3e99651d..40ce9b2dd 100644
--- a/src/Entities/Pawn.h
+++ b/src/Entities/Pawn.h
@@ -23,6 +23,8 @@ public:
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
+ virtual bool IsFireproof(void) const override;
+
// tolua_begin
/** Applies an entity effect
@@ -39,6 +41,11 @@ public:
*/
void RemoveEntityEffect(cEntityEffect::eType a_EffectType);
+ /** Returns true, if the entity effect is currently applied
+ @param a_EffectType The entity effect to check
+ */
+ bool HasEntityEffect(cEntityEffect::eType a_EffectType) const;
+
/** Removes all currently applied entity effects (used when drinking milk) */
void ClearEntityEffects(void);