From afb65224879ccced98c5a3699f7732dc37fe3f40 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 2 Sep 2017 19:51:32 +0300 Subject: Working spiders and cave spiders using behaviors --- src/Mobs/Spider.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Mobs/Spider.h') diff --git a/src/Mobs/Spider.h b/src/Mobs/Spider.h index de2c8d533..7113b9a3e 100644 --- a/src/Mobs/Spider.h +++ b/src/Mobs/Spider.h @@ -2,6 +2,10 @@ #pragma once #include "Monster.h" +#include "Behaviors/BehaviorAttackerMelee.h" +#include "Behaviors/BehaviorWanderer.h" +#include "Behaviors/BehaviorAggressive.h" +#include "Behaviors/BehaviorDayLightBurner.h" @@ -19,6 +23,13 @@ public: virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override; +private: + // tick behaviors + cBehaviorAttackerMelee m_BehaviorAttackerMelee; + cBehaviorWanderer m_BehaviorWanderer; + + // other behaviors + cBehaviorAggressive m_BehaviorAggressive; } ; -- cgit v1.2.3