Question: i am including object.h into this source code object.h will need all of the steps below implemented inside of it. What should the core look

i am including object.h into this source code
i am including object.h into this source code object.h will need all
of the steps below implemented inside of it. What should the core
look that follows these steps in order? If I am creating an
object.h file and these steps are the requirements below how can i
object.h will need all of the steps below implemented inside of it. What should the core look that follows these steps in order?
go about writing this code inside the h file so that it
aligns with these instructions? displaybattle(player, nonsters); player. update(player, nonsters); bringoutYourbead(aonsters); std: :cout
s std: :endl; std: ffor_each(aonsters.begin (, wonsters, end (, (e] (honstere nonster)
If I am creating an object.h file and these steps are the requirements below how can i go about writing this code inside the h file so that it aligns with these instructions?
t 3); systen ("PAUSE"); systen ("cLs"); If (player. IsDead()) std: icout e
"You Have Died" stdi:endl; if (player. IsDead() es monsters. size( m=0 )
i std: icout e "BUT" e std: iendl; if (monsters. size ()=0

displaybattle(player, nonsters); player. update(player, nonsters); bringoutYourbead(aonsters); std: :cout s std: :endl; std: ffor_each(aonsters.begin (, wonsters, end (, (e] (honstere nonster) t 3); systen ("PAUSE"); systen ("cLs"); If (player. IsDead()) std: icout e "You Have Died" stdi:endl; if (player. IsDead() es monsters. size( m=0 ) i std: icout e "BUT" e std: iendl; if (monsters. size ()=0 ) t std: :cout ee "You have killed the monsters!11" s stditendi; systen ("PAUSE"); [3 void displayBattle (const Playert player, const std: ivectorellonstegot monsters) f object: tnaneonty = fatse; //TOD0: : get rid of this and just dot he full cout. std: : cout se player e std: :endi; std: scout std: :end a Monsters: " stdi sendl; t int 1123 stdi:for_each(aonsters.begin(), eonsters.end(), [A](const Honsterf monster) \{ std: :cout e " "1 monsters) =0; a. Player: lines 446e from Goal.6.cpp goes here. The part dealing with attacking vs healing. Also playerAttack function is no longer a function, just put the code in the ' a ' case. b. Monster: The part inside the for_each goes here. for_each now just calls the update. 4. virtual void print (std: :ohream\& o) const; a. the overload of the operator will call this to make sure it the proper one is calledi And two protected methods: 1. int dasage0one(int modification) const; a. does the common bits for attack. Monsters pass in 0, player based on sword 2. int damageTaken (int damageDone, int AC ); does the common bits for defend

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!