diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-25 13:53:20 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-25 13:53:20 +0200 |
commit | 42d3c615fe6b30111cb741b85cde9441d9d5a39b (patch) | |
tree | 9ab2905dacf583dd81243cc532fd9716ad1939ca /src/Mobs/Cow.h | |
parent | Coward mobs run twice as fast (diff) | |
download | cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar.gz cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar.bz2 cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar.lz cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar.xz cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.tar.zst cuberite-42d3c615fe6b30111cb741b85cde9441d9d5a39b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Cow.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/Mobs/Cow.h b/src/Mobs/Cow.h index 8f79e630f..b12da9030 100644 --- a/src/Mobs/Cow.h +++ b/src/Mobs/Cow.h @@ -1,16 +1,17 @@ - #pragma once -#include "PassiveMonster.h" - - - - +#include "Behaviors/BehaviorBreeder.h" +#include "Behaviors/BehaviorItemFollower.h" +#include "Behaviors/BehaviorItemReplacer.h" +#include "Behaviors/BehaviorCoward.h" +#include "Behaviors/BehaviorWanderer.h" +#include "Monster.h" class cCow : public cMonster { public: cCow(); + ~cCow() {} typedef cMonster super; CLASS_PROTODEF(cCow) @@ -25,11 +26,14 @@ public: virtual cBehaviorBreeder * GetBehaviorBreeder() override; virtual const cBehaviorBreeder * GetBehaviorBreeder() const override; private: + // Tick controlling behaviors cBehaviorBreeder m_BehaviorBreeder; cBehaviorItemFollower m_BehaviorItemFollower; cBehaviorCoward m_BehaviorCoward; - cBehaviorWanderer m_BehaviorWanderer; + cBehaviorItemReplacer m_BehaviorWanderer; + // Non tick controlling behaviors + cBehaviorWanderer m_BehaviorItemReplacer; } ; |