summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PassiveMonster.h
diff options
context:
space:
mode:
authorGargaj <gargaj@conspiracy.hu>2015-12-12 20:55:58 +0100
committerGargaj <gargaj@conspiracy.hu>2015-12-13 13:04:18 +0100
commit0eb519b35add5b8ac9553ed4716430fbd26b660e (patch)
tree1853aaa787b482c9d12e9de6ce40d84772b7527a /src/Mobs/PassiveMonster.h
parentMerge pull request #2741 from SafwatHalaby/mTarget2 (diff)
downloadcuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar.gz
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar.bz2
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar.lz
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar.xz
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.tar.zst
cuberite-0eb519b35add5b8ac9553ed4716430fbd26b660e.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/PassiveMonster.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/PassiveMonster.h b/src/Mobs/PassiveMonster.h
index 0e9250e6c..1106ffb91 100644
--- a/src/Mobs/PassiveMonster.h
+++ b/src/Mobs/PassiveMonster.h
@@ -27,6 +27,9 @@ public:
/** Returns the items that make the animal breed - this is usually the same as the ones that make the animal follow, but not necessarily. */
virtual void GetBreedingItems(cItems & a_Items) { GetFollowedItems(a_Items); }
+ /** Called after the baby is born, allows the baby to inherit the parents' properties (color, etc.) */
+ virtual void InheritFromParents(cPassiveMonster * a_Parent1, cPassiveMonster * a_Parent2) { }
+
/** Returns the partner which the monster is currently mating with. */
cPassiveMonster * GetPartner(void) const { return m_LovePartner; }