I need to Create a getHealth member function at the Creature level that returns the value of m_Health. Create a wound member function at the Creature level that decrements the value of m_Health by the amount specified by the integer input parameter.
class Creature //abstract class
{
public:
Creature(int health = 100);
virtual void Greet() const = 0; //pure virtual member function
virtual void DisplayHealth() const;
class Boss : public Enemy
{
public:
Boss(int damage = 30);
void virtual Taunt() const; //optional use of keyword virtual
void virtual Attack() const; //optional use of keyword virtual
};
Boss::Boss(int damage):
Enemy(damage) //call base class constructor with argument
{}
Boss::Taunt() const //override base class member function
{
cout << "The boss says he will end your pitiful existence.\n";
}
Boss::Attack() const //override base class member function
{
Enemy::Attack(); //call base class member function
cout << " And laughs heartily at you.\n";
}