From 2523af8f9a6f712dc6cc4007437349557b0bdfe1 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 2 Sep 2017 19:36:24 +0300 Subject: Many mobs reimplemented --- src/Mobs/CaveSpider.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/Mobs/CaveSpider.h') diff --git a/src/Mobs/CaveSpider.h b/src/Mobs/CaveSpider.h index f59809d03..c7a660c75 100644 --- a/src/Mobs/CaveSpider.h +++ b/src/Mobs/CaveSpider.h @@ -1,7 +1,9 @@ #pragma once #include "Monster.h" - +#include "Behaviors/BehaviorAttackerMelee.h" +#include "Behaviors/BehaviorWanderer.h" +#include "Behaviors/BehaviorAggressive.h" @@ -18,6 +20,13 @@ public: virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; + + // tick behaviors + cBehaviorAttackerMelee m_BehaviorAttackerMelee; + cBehaviorWanderer m_BehaviorWanderer; + + // other behaviors + cBehaviorAggressive m_BehaviorAggressive; } ; -- cgit v1.2.3