diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-29 19:32:25 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-29 19:32:25 +0200 |
commit | d0a2f22bc40b9a1c961d57962056501591d5b49f (patch) | |
tree | 69af4bab3021203536aab57bad1308f17636fd4c /src/Mobs/Villager.h | |
parent | Implemented chickens (diff) | |
download | cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar.gz cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar.bz2 cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar.lz cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar.xz cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.tar.zst cuberite-d0a2f22bc40b9a1c961d57962056501591d5b49f.zip |
Diffstat (limited to 'src/Mobs/Villager.h')
-rw-r--r-- | src/Mobs/Villager.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/Mobs/Villager.h b/src/Mobs/Villager.h index 6f3e7b4e8..141193212 100644 --- a/src/Mobs/Villager.h +++ b/src/Mobs/Villager.h @@ -1,16 +1,21 @@ #pragma once -#include "PassiveMonster.h" +#include "Monster.h" #include "Blocks/ChunkInterface.h" +#include "Behaviors/BehaviorBreeder.h" +#include "Behaviors/BehaviorItemFollower.h" +#include "Behaviors/BehaviorCoward.h" +#include "Behaviors/BehaviorWanderer.h" +#include "Monster.h" class cVillager : - public cPassiveMonster + public cMonster { - typedef cPassiveMonster super; + typedef cMonster super; public: @@ -53,6 +58,12 @@ public: bool DoesHaveActionActivated(void) const { return m_VillagerAction; } private: + // Tick controlling behaviors + cBehaviorBreeder m_BehaviorBreeder; + cBehaviorItemFollower m_BehaviorItemFollower; + cBehaviorCoward m_BehaviorCoward; + cBehaviorWanderer m_BehaviorWanderer; + int m_ActionCountDown; int m_Type; |