Question: #include void displayBattle ( const Object& player, const std::vector playerAttack ( player , monsters ) ; break; } case ' h ' : heal (
#include void displayBattleconst Object& player, const std::vector playerAttackplayer monsters;
break;
case h :
healplayer;
break;
default:
std::cout "please enter a or h std::endl;
break;
bringOutYourDeadmonsters;
monsterAttackplayer monsters;
systemPAUSE;
systemCLS;
if playerhealth
std::cout "You Have Died" std::endl;
if playerhealth && monsters.size
std::cout "BUT" std::endl;
if monsterssize
std::cout "You have killed the monsters!!!" std::endl;
systemPAUSE;
vold dlsplayBattleconst object& player, const std::vectordouble healthVariance;
switch name
case Object::Type::slime:
strengthVariance level ;
healthVariance level ;
break;
case Object::Type::orc:
strengthVariance level ;
healthVariance long longlevel level ;
break;
case Object::Type::sprite:
strengthVariance level ;
healthVariance level;
break;
case Object::Type:
strengthVariance level ;
healthVariance long longlevel level ;
break;
std::normaldistributionCreate an Object class
Create a player and monster class that inherits from object
Player gets Spell points and Heal costs SP
Monster gets an AC based upon its type.
create an item class.
You get to:
Create some operator overloads:
for the Object class same as printObject function
for the Item class same as printItem function
for the Item class compares bonus values
for the Item class adds bonus values and an int and returns an int
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
