Question: c + + implemnt this function in details just impliemnt this function in rager.cpp file read and look at every details and implemnt every condition
c implemnt this function in details just impliemnt this function in rager.cpp file read and look at every details and implemnt every condition mention hereyou dont't have to worry about no header or nothing and please read the instructions very carefullly hppbool eatMycoMorsel;
@post:
If the creature is UNDEAD, it becomes tame if not already, as it appreciates the gesture, even though as an UNDEAD it does not really eat. It gains hitpoint from the mysterious powers it receives by wearing the mushroom as a hat. Nothing else happens.
If the creature is MYSTICAL, if it can summon a Thoughtspawn, it gives the mushroom to the Thoughtspawn instead. If it cannot summon a Thoughtspawn and is tame, it eats the mushroom to be polite. If it only had hitpoint left, it remains at hitpoint and becomes untame, else it loses hitpoint. If it cannot summon a Thoughtspawn and is untame, it decides it doesn't have to deal with this and it leaves the Cavern. Nothing else happens.
If the creature is an ALIEN, if it has Telepathic affinity, it convinces Selfa Ensert to eat the mushroom instead, and gains hitpoint from laughing at their resulting illness as laughter is the best medicine
If it is an ALIEN and does not have Telepathic affinity, but has a Telepathic projectile, it uses one of such projectile to achieve the same effect. Remember to remove the projectile from the vector if it only had left
If it is an ALIEN and does not have Telepathic affinity or a Telepathic projectile, it eats the mushroom and gains hitpoints. As it turns out, the mushroom was good for it It becomes tame if it was not already. Nothing else happens.
@return : true if the creature leaves the Cavern, false otherwise
and here's the nd functions that you need to impleamnt both function derived class function from creature base class
@post : If the creature is UNDEAD, it becomes tame if not already, as it appreciates the gesture, even though as an UNDEAD it does not really eat. It gains hitpoint from the mysterious powers it receives by wearing the mushroom as a hat. Nothing else happens.
If the creature is of Faction FLESHGORGER, it becomes so offended by being offered a mushroom that it becomes untamed if it was tame. If it was already untamed, it leaves the Cavern. Nothing else happens.
If the creature was of Faction SHADOWSTALKER, if it was untame, it hides from the mushroom and nothing happens. If it was tame, it eats the mushroom and loses hitpoint, unless it only had hitpoint left in which case it stays at hitpoint but becomes untame. Nothing else happens.
@return : true if the creature leaves the Cavern, false otherwise
eatMycoMorsel
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
