summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Cow.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Mobs/Cow.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/Mobs/Cow.h b/src/Mobs/Cow.h
index 7b3cdb56e..8f79e630f 100644
--- a/src/Mobs/Cow.h
+++ b/src/Mobs/Cow.h
@@ -7,23 +7,28 @@
-class cCow :
- public cPassiveMonster
+class cCow : public cMonster
{
- typedef cPassiveMonster super;
-
public:
- cCow();
+ cCow();
+
+ typedef cMonster super;
+ CLASS_PROTODEF(cCow)
- CLASS_PROTODEF(cCow)
+ virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
- virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
- virtual void OnRightClicked(cPlayer & a_Player) override;
+ virtual void GetFollowedItems(cItems & a_Items) override
+ {
+ a_Items.Add(E_ITEM_WHEAT);
+ }
- virtual void GetFollowedItems(cItems & a_Items) override
- {
- a_Items.Add(E_ITEM_WHEAT);
- }
+ virtual cBehaviorBreeder * GetBehaviorBreeder() override;
+ virtual const cBehaviorBreeder * GetBehaviorBreeder() const override;
+private:
+ cBehaviorBreeder m_BehaviorBreeder;
+ cBehaviorItemFollower m_BehaviorItemFollower;
+ cBehaviorCoward m_BehaviorCoward;
+ cBehaviorWanderer m_BehaviorWanderer;
} ;