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, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
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
Biology, 21.12.2020 21:50
question
Mathematics, 21.12.2020 21:50
question
Mathematics, 21.12.2020 21:50
Questions on the website: 13722362