subject

In this exercise, you will implement a basic RPG game with two character types and the possibility to play a game, that is, having two characters fight each other. Four classes are necessary in order to complete this assignment. These classes will be called Character, Barbarian, Mage, and Game.

Character Class

This class (for which the header file is provided) will have:

Variable called "name" of data type string (Private member)
Variable called "race" of data type string (Private member)
Variable called "level" of data type int (Private member)
Variable called "health" of data type int (Private member)
A parameterized constructor that takes name, race, level, and health
Public Accessor functions to access these variables
Public Mutator functions to change these variables
A public function called "Attack()" that takes a pointer to a character
A public function called "Print()" that prints out the variables in this format:
Character Status:
Name: Bob
Race: Human
Level: 10
Health: 100

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
In a heat transfer course, we can derive the equation for the temperature distribution in a flat rectangular plate. in this example, we will look at a plate at steadystate with three sides being held at t1, and one side held at t2. the temperature for any location on the plate, t(x,y), can be calculated by where create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar n, scalars l and w in feet and scalars t1 and t2 in degrees fahrenheit. it will output a matrix t which is the temperature of each x and y locations. t will have the number of columns equal to the number of elements in x and rows equal to the number of elements in y. though this can be done without loops (perhaps more efficiently), your program must use a nested loop.
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
You know the right answer?
In this exercise, you will implement a basic RPG game with two character types and the possibility t...
Questions
question
Mathematics, 26.06.2019 13:30
Questions on the website: 13722367