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 13:30
Which type of excel chart should be used to track students’ progress on test grades? line column bar pie
Answers: 2
question
Computers and Technology, 24.06.2019 21:40
Which of these is not a type of socket? aga (alternating grid array) pga (pin grid array) spga (staggered pin grid array) lga (land grid array)
Answers: 1
question
Computers and Technology, 25.06.2019 07:20
Acompany's intranet is set up on this type of server. application communication print web
Answers: 1
question
Computers and Technology, 25.06.2019 11:30
The main benefit of encryption of a hard drive
Answers: 1
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, 08.07.2020 01:01
question
Spanish, 08.07.2020 01:01
question
Biology, 08.07.2020 01:01
question
Mathematics, 08.07.2020 01:01
question
Mathematics, 08.07.2020 01:01
question
Mathematics, 08.07.2020 01:01
question
Mathematics, 08.07.2020 01:01
Questions on the website: 13722367