diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 18:36:24 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 18:36:24 +0200 |
commit | 2523af8f9a6f712dc6cc4007437349557b0bdfe1 (patch) | |
tree | dcd08777ca9672c331ff6b3503a899e59e2584fc /src/Mobs/CaveSpider.h | |
parent | Reimplemented creepers using Behaviors (diff) | |
download | cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.gz cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.bz2 cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.lz cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.xz cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.zst cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.zip |
Diffstat (limited to 'src/Mobs/CaveSpider.h')
-rw-r--r-- | src/Mobs/CaveSpider.h | 11 |
1 files changed, 10 insertions, 1 deletions
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; } ; |