subject
Engineering, 21.02.2020 21:57 jones501324

The assignment asks you to to make a very simple RPG (role-playing game). There are three player classes: Tank, Healer, and Fighter. You must implement the doAction() method for all the classes. We've done the implementation of the Tank class for you (that was easy!). Complete Healer and Fighter. The Healer must restore 75 HP (Health Points) to the target up to the maxHP limit, and the Fighter must deal 75 damage to the target (here, you can go below 0). You also need to fix the doAction() declaration in player. h. Players also have an inventory of items. We want to store the name and amount of each item. Normally, we would use a map to do this (make sure you know why!), but to get some practice with vectors, we're going to use a vector to implement the map. Recall that, like arrays, vectors are lists of elements, but unlike arrays, they can dynamically change in size. C++ Reference is a great resource to use throughout 104, and especially in this lab for vector syntax and examples! As you can see in inventory. h, Inventory inherits from vector. Notice that this is private inheritance, so outside classes cannot call vector functions on our Inventory object. That is, if we have instance of Inventory, we can't call the vector function push_back — we can only call addItem(). Implement the inventory system given the header file we've provided. When you're done, the provided test should run using make tests. The Makefile is already written for you, and you don't need to modify it.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 19:10
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
You know the right answer?
The assignment asks you to to make a very simple RPG (role-playing game). There are three player cla...
Questions
question
Mathematics, 09.04.2020 02:26
question
Mathematics, 09.04.2020 02:26
question
Mathematics, 09.04.2020 02:26
Questions on the website: 13722362