summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Creeper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Creeper.h')
-rw-r--r--src/Mobs/Creeper.h13
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;
} ;