summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.h
diff options
context:
space:
mode:
authorDamián Imrich <damian@haze.sk>2021-01-22 10:05:18 +0100
committerGitHub <noreply@github.com>2021-01-22 10:05:18 +0100
commit59e906ec6caac03a705d194705cc2859c5797632 (patch)
treeb7083ea56c65ed27e93f4fa6e897ba8e77bc4c68 /src/Entities/Pawn.h
parentMultiVersionProtocol: fix two crashes (diff)
downloadcuberite-59e906ec6caac03a705d194705cc2859c5797632.tar
cuberite-59e906ec6caac03a705d194705cc2859c5797632.tar.gz
cuberite-59e906ec6caac03a705d194705cc2859c5797632.tar.bz2
cuberite-59e906ec6caac03a705d194705cc2859c5797632.tar.lz
cuberite-59e906ec6caac03a705d194705cc2859c5797632.tar.xz
cuberite-59e906ec6caac03a705d194705cc2859c5797632.tar.zst
cuberite-59e906ec6caac03a705d194705cc2859c5797632.zip
Diffstat (limited to 'src/Entities/Pawn.h')
-rw-r--r--src/Entities/Pawn.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h
index 1a9285b77..ab8d66a58 100644
--- a/src/Entities/Pawn.h
+++ b/src/Entities/Pawn.h
@@ -71,6 +71,7 @@ public:
cEntityEffect * GetEntityEffect(cEntityEffect::eType a_EffectType) const;
protected:
+
typedef std::map<cEntityEffect::eType, std::unique_ptr<cEntityEffect>> tEffectMap;
tEffectMap m_EntityEffects;
@@ -83,4 +84,8 @@ private:
/** A list of all monsters that are targeting this pawn. */
std::vector<cMonster*> m_TargetingMe;
+
+ /** Attempt to activate a Totem of Undying.
+ If activation for the given type of damage was successful, consumes the totem and returns true. */
+ bool DeductTotem(eDamageType a_DamageType);
} ; // tolua_export