summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Chicken.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Chicken.h')
-rw-r--r--src/Mobs/Chicken.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/Mobs/Chicken.h b/src/Mobs/Chicken.h
index 3be338b15..f60f3672f 100644
--- a/src/Mobs/Chicken.h
+++ b/src/Mobs/Chicken.h
@@ -1,15 +1,18 @@
#pragma once
-#include "PassiveMonster.h"
-
-
+#include "Behaviors/BehaviorBreeder.h"
+#include "Behaviors/BehaviorItemFollower.h"
+#include "Behaviors/BehaviorCoward.h"
+#include "Behaviors/BehaviorWanderer.h"
+#include "Behaviors/BehaviorItemDropper.h"
+#include "Monster.h"
class cChicken :
- public cPassiveMonster
+ public cMonster
{
- typedef cPassiveMonster super;
+ typedef cMonster super;
public:
cChicken(void);
@@ -17,7 +20,6 @@ public:
CLASS_PROTODEF(cChicken)
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
- virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual void GetFollowedItems(cItems & a_Items) override
{
@@ -27,8 +29,13 @@ public:
virtual void HandleFalling(void) override;
private:
+ // Tick controlling behaviors
+ cBehaviorBreeder m_BehaviorBreeder;
+ cBehaviorItemFollower m_BehaviorItemFollower;
+ cBehaviorCoward m_BehaviorCoward;
+ cBehaviorWanderer m_BehaviorWanderer;
- int m_EggDropTimer;
+ cBehaviorItemDropper m_BehaviorItemDropper;
} ;