diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 14:01:11 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 14:01:11 +0200 |
commit | 7aa0b8bd06a07bb394ad21393051bd37883ebb6a (patch) | |
tree | caeec7c9d3615826e8ce1d9b0aa76a4977be5f4c /src/Mobs/Creeper.h | |
parent | Reimplemented skeletons using Behaviors (diff) | |
download | cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar.gz cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar.bz2 cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar.lz cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar.xz cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.tar.zst cuberite-7aa0b8bd06a07bb394ad21393051bd37883ebb6a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Creeper.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Mobs/Creeper.h b/src/Mobs/Creeper.h index 8e74160dc..efb7cda23 100644 --- a/src/Mobs/Creeper.h +++ b/src/Mobs/Creeper.h @@ -2,7 +2,7 @@ #pragma once #include "Monster.h" - +#include "Behaviors/BehaviorAttackerSuicideBomber.h" @@ -21,15 +21,12 @@ public: virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override; virtual void OnRightClicked(cPlayer & a_Player) override; - bool IsBlowing(void) const {return m_bIsBlowing; } - bool IsCharged(void) const {return m_bIsCharged; } - bool IsBurnedWithFlintAndSteel(void) const {return m_BurnedWithFlintAndSteel; } + bool IsBlowing(void) const {return m_BehaviorSuicideBomber.IsBlowing(); } + bool IsCharged(void) const {return m_BehaviorSuicideBomber.IsCharged(); } + bool IsBurnedWithFlintAndSteel(void) const {return m_BehaviorSuicideBomber.IsBurnedWithFlintAndSteel(); } private: - - bool m_bIsBlowing, m_bIsCharged, m_BurnedWithFlintAndSteel; - int m_ExplodingTimer; - + cBehaviorSuicideBomer m_BehaviorSuicideBomber; } ; |