From 0eb519b35add5b8ac9553ed4716430fbd26b660e Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sat, 12 Dec 2015 20:55:58 +0100 Subject: sheep color inheritance --- src/Mobs/PassiveMonster.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Mobs/PassiveMonster.h') 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; } -- cgit v1.2.3