Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ PLEASE Custom RPG Mechanics Each turn the characters will deal damage to each other A character will deal damage based on how strong they

C++ PLEASE

image text in transcribed

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 o damage taken attacker's strength - defender's defense . 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions