Question: Simplified version of Pokemon Cpp - Develop classes to represent Pokmon and their Moves. Implement interactions between Pokmon objects using member functions - All

Simplified version of Pokemon Cpp - Develop classes to represent Pokmon and their Moves. Implement

Simplified version of Pokemon Cpp - Develop classes to represent Pokmon and their Moves. Implement interactions between Pokmon objects using member functions - All Classes must be set up with a header and implementation file separate from the main file Pokemon Class: Member Variables: Name, Type (to begin with only assume 4 types: fire, water, grass, normal), Health, Attack, Defense. Moves (Array of Move Objects, max 4). Don't forget accessors and mutators, variables should be private! Member Functions: Constructor, performMove, receiveDamage, displayStatus Moves Class: Members: Name, type (again just 4 basic types), damage (assume all moves are damaging moves to begin with) . Constructor Accessor and Mutator Damge formula: Calculates damge and type effectiveness: Damage = (MoveDamage + AttackerAttack) * TypeEffectiveness TargetDefense = max (Damage, 0) Max is used since you should never deal negative damage Type effectives: Fire is super effective against Grass and resists itself and Grass Grass is super effective against Water and resists itself and Water Water is super effective against Fire and resists itself and Fire Normal is not effective or resisted by any type. Main Function: Create 2 object pokemon, and set them to battle each other in a loop taking turns until HP is reduced to 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a simplified version of the Pokemon battle system in C using classes to represent Pokemon and their moves Pokemonh ifndef POKEMONH define POKEMO... View full answer

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 Programming Questions!