Question: in c + + try Project: Gummy Bear Arena Overview: You are teleported to a world where gummy bears are alive and roam freely, each

in c++ try Project: Gummy Bear Arena
Overview: You are teleported to a world where gummy bears are alive and roam freely, each possessing unique powers and abilities. These gummies seemed to have formed a bond with humans, becoming their loyal companions and fierce warriors. Your challenge is to create a fighting game, where players can immerse themselves in the world of gummy bears and fight other bears. Consider how you will implement different classes to represent different gummies, battle mechanics, and other game elements. Get creative with your designs and think about how you can make your game engaging and addictive for the player.
Key Features:
1) Gummy Bear class: create a gummy class that stores information about each bear, such as their name, level, health, attack stat, defense stat, and speed stat.
This class should have getters and setters for each field mentioned above.
A unique identifier should be used for each bear.
2) Opponent class: create an Opponent class that stores information about each opponent who is against your bear; similar to the gummy class, it would store information like level, health, attack, stat, defence stat, and speed stat,
This class should have getters and setters for each field mentioned above.
A unique identifier should be used for each opponent.
3) Action class: Create an Action class that holds information about each action your bear and the opponent can perform, such as attacking, defending, and taking damage.
This class should have getters and setters for each field mentioned above.
A unique identifier should be used for each action.
5) Training: Add a feature that allows the players to train their pets, which will increase their level and provide a random stat attribute through training sessions, providing a sense of progression.
The player should be able to use this feature at any point.
Perhaps think about how much each stat will be increased, if any.
6) Save File: Implement a file save system to allow players to save their game progress whenever they choose. The file save system should store relevant game data, like gummy bear information, so that players can resume their gameplay sessions at a later time.
The information should be written into a .txt file.
Based on the name of the .txt file it should be able to be retrieved through user input if the user chooses to load a file perhaps consider naming it what the player chooses to name their bear.
Ensure all necessary information is stored when saving data.
7) Load File: Implement a function or method to allow players to load their saved game progress. When called, the load function should read game data from the saved file and restore the game state accordingly.
Technical Requirements:
You must use files to save and load data between different sessions (file I/O).
You must use inheritance.
You must use more than two classes.
You must use pointers and dynamic allocation.
You must use comments in your program to explain what each class/section of code does.
Use polymorphism.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!