summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Cow.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-24 22:21:25 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-24 22:21:25 +0200
commit810230b5466f1363d69763670fc9b85fa385c99a (patch)
treea9d4dcfd43ac28ef2fb9e61e73a34f7246a695bb /src/Mobs/Cow.h
parentMerge branch 'master' into mobs2 (diff)
downloadcuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.gz
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.bz2
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.lz
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.xz
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.zst
cuberite-810230b5466f1363d69763670fc9b85fa385c99a.zip
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;
} ;