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/Mooshroom.cpp | |
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/Mooshroom.cpp')
-rw-r--r-- | src/Mobs/Mooshroom.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Mobs/Mooshroom.cpp b/src/Mobs/Mooshroom.cpp index b6feca76e..7a1feefcb 100644 --- a/src/Mobs/Mooshroom.cpp +++ b/src/Mobs/Mooshroom.cpp @@ -16,6 +16,11 @@ cMooshroom::cMooshroom(void) : super("Mooshroom", mtMooshroom, "entity.cow.hurt", "entity.cow.death", 0.9, 1.3) { + m_EMPersonality = PASSIVE; + m_BehaviorBreeder.AttachToMonster(*this); + m_BehaviorCoward.AttachToMonster(*this); + m_BehaviorItemFollower.AttachToMonster(*this); + m_BehaviorWanderer.AttachToMonster(*this); } @@ -39,6 +44,7 @@ void cMooshroom::GetDrops(cItems & a_Drops, cEntity * a_Killer) void cMooshroom::OnRightClicked(cPlayer & a_Player) { + // mobTodo Behaviors switch (a_Player.GetEquippedItem().m_ItemType) { case E_ITEM_BUCKET: @@ -73,3 +79,20 @@ void cMooshroom::OnRightClicked(cPlayer & a_Player) } } + + + + +cBehaviorBreeder * cMooshroom::GetBehaviorBreeder() +{ + return &m_BehaviorBreeder; +} + + + + + +const cBehaviorBreeder * cMooshroom::GetBehaviorBreeder() const +{ + return static_cast<const cBehaviorBreeder *>(&m_BehaviorBreeder); +} |