Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Custom RPG Mechanics . Each turn the characters will deal damage to each other A character will deal damage based on how strong they
c++
Custom RPG Mechanics . Each turn the characters will deal damage to each other A character will deal damage based on how "strong" they are Characters are defeated when their "health" reaches O Characters can reduce incoming damage based on how "tough" they are Characters attack in order of their "speed" From these mechanics, we can determine what member variables our character class will have: Strength, to represent how hard they can hit Health, to represent how much damage they can take . Defense, to reduce incoming damage Speed, to determine which character will attack first Using the mechanics described above, create a combat program that has the following requirements: Two characters should take turns "attacking" each other until one runs out of health Once one character runs out of health the game ends Characters should be represented by a "Character" class The character class should not utilize any public member variables includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started