Question: Java Language: Topic: Abstraction Classes Problem A: RPG Character The following (Name, Race, Stats) are the information needed for character creation in a RPG game.
Java Language:
Topic: Abstraction Classes

Problem A: RPG Character The following (Name, Race, Stats) are the information needed for character creation in a RPG game. The following are abstract classes to set the character details. Display the details of the character in the main program. Provide the UML diagram. There are two players who will create a character. NAME() - accepts the in-game character of the player as an input and return it. RACE() - accepts the race of the character of the player as an input and return it. The following are the choices. Ask the player again if it is a wrong input. 1 - Human 2- Elf 3 - Orc 4- Angel 5- Demon . STATS () - accepts the three initial stats of the character (HP, DEF, ATK) and return it as an array [HP, DEF, ATK]. In every game, the initial stats points available are limited for the player to distribute on the character. The program will ask again for new input if it exceeds 10 total stat points
Step by Step Solution
There are 3 Steps involved in it
To solve this problem well implement an abstract class structure for character creation and handle user input Lets break this down stepbystep Step 1 D... View full answer
Get step-by-step solutions from verified subject matter experts
