Question: In c++ please!! I have the following for my program so far. Design an Enemy class Store the enemy's name, hit points and their weaporn
Design an Enemy class Store the enemy's name, hit points and their weaporn strength. . Create a constructor that takes in the total hit points and weapon strength Create methods o A method to return Hit Points o A method to return Weapon Strength. o A method to add or remove Hit Points. o An Attack method. Use the random function to create a dice roll. See attached code Return the roll number Design an Hero class Store the hero's name hit points and their weapon strength Create a constructor that takes in the total hit points and weapon strength . Create methods o A method to return Hit Points o A method to return Weapon Strength. o A method to add or remove Hit Points. o An Attack method. Use the random function to create a dice roll. See attached code Return the roll number Create a Driver program. The driver program should initiate an enemy and a hero and assign them hit points and a weapon strength. The program should then call the Hero's and Enemy's attack method. Who's ever dice roll is higher is the successful attacker Deduct the winning attackers weapon strength from the others hit points . Continue this until one or the other has no more hit points. Declare a Victor and a nice eulogy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
