From 79eb4c3aed59edce58d2529bf9c6334f7fe6fbad Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 1 Aug 2017 18:51:43 +0100 Subject: Implement invisibility effect --- src/Entities/Pawn.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Entities/Pawn.h') diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h index e6aae4f49..480b523ea 100644 --- a/src/Entities/Pawn.h +++ b/src/Entities/Pawn.h @@ -29,6 +29,7 @@ public: virtual void KilledBy(TakeDamageInfo & a_TDI) override; virtual bool IsFireproof(void) const override; + virtual bool IsInvisible() const override; virtual void HandleAir(void) override; virtual void HandleFalling(void); @@ -66,11 +67,11 @@ public: /** Returns all entity effects */ std::map GetEntityEffects(); - /** Returns the entity effect, if it is currently applied. */ - cEntityEffect *GetEntityEffect(cEntityEffect::eType a_EffectType); + /** Returns the entity effect, if it is currently applied or nullptr if not. */ + cEntityEffect * GetEntityEffect(cEntityEffect::eType a_EffectType); protected: - typedef std::map tEffectMap; + typedef std::map> tEffectMap; tEffectMap m_EntityEffects; double m_LastGroundHeight; -- cgit v1.2.3