From e8dd3278eaf66a49eea74769d1215944d6985d58 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 2 Sep 2017 16:30:55 +0300 Subject: Implemented creepers using Behaviors --- src/Mobs/Creeper.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Mobs/Creeper.h') diff --git a/src/Mobs/Creeper.h b/src/Mobs/Creeper.h index 3d1af2ed1..60a33fe7b 100644 --- a/src/Mobs/Creeper.h +++ b/src/Mobs/Creeper.h @@ -3,7 +3,9 @@ #include "Monster.h" #include "Behaviors/BehaviorAttackerSuicideBomber.h" - +#include "Behaviors/BehaviorWanderer.h" +#include "Behaviors/BehaviorAggressive.h" +#include "Behaviors/BehaviorDayLightBurner.h" @@ -24,7 +26,13 @@ public: bool IsBurnedWithFlintAndSteel(void) const; private: - cBehaviorAttackerSuicideBomber m_BehaviorSuicideBomber; + // tick behaviors + cBehaviorAttackerSuicideBomber m_BehaviorAttackerSuicideBomber; + cBehaviorWanderer m_BehaviorWanderer; + + // other behaviors + cBehaviorAggressive m_BehaviorAggressive; + cBehaviorDayLightBurner m_BehaviourDayLightBurner; } ; -- cgit v1.2.3