Simplified version of Pokemon Cpp - Develop classes to represent Pokmon and their Moves. Implement interactions...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Simplified version of Pokemon Cpp - Develop classes to represent Pokémon and their Moves. Implement interactions between Pokémon 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 Simplified version of Pokemon Cpp - Develop classes to represent Pokémon and their Moves. Implement interactions between Pokémon 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
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these programming questions
-
Based on the case study: Pricing of Players in the Indian Premier League answer the following questions: Develop a multiple regression model and identify statistically significant predictors that...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Oliver owns Wifit, an unincorporated sports store. Wifit earned $100,000 before Oliver drew out a salary of $60,000. What is Oliver's deduction for self-employment taxes? Group of answer choices A....
-
The top string of a guitar has a fundamental frequency of 330 Hz when it is allowed to vibrate as a whole, along all of its 64.0-cm length from the neck to the bridge. A fret is provided for limiting...
-
Tsao Company provided the following income statement for last year: Sales...................................................$16,250,000 Cost of goods...
-
To cool a given room it is necessary to supply \(4 \mathrm{ft}^{3} / \mathrm{s}\) of air through an 8-in.-diameter pipe. Approximately how long is the entrance length in this pipe?
-
Megan has her home and personal property insured under an unendorsed Homeowners 3 (special form) policy. Indicate whether each of the following losses is covered. If the loss is not covered, explain...
-
At January 1, 2024, Caf Med leased restaurant equipment from Crescent Corporation under a nine-year lease agreement. The lease agreement specifies annual payments of $31,000 beginning January 1,...
-
Cheadle Company purchased a fleet of 20 delivery trucks for $8,000 each on January 2, 2019. It decided to use composite depreciation on a straight-line basis and calculated the depreciation from the...
-
Cahaya Co. does business in Malaysia and New Zealand. In attempting to assess its operating exposure, it compiled the following information: Cahayas Malaysia sales are somewhat affected by the value...
-
What three things should occur before each coaching session? Question 9 What are the two basic techniques commonly used in coaching sessions? Question 10 Why is it necessary to check the learner's...
-
Effective and Ineffective Coaching Experiences Describe/ provides a thorough and detailed description of one effective and one ineffective experience of being coached by others. Actions for...
-
Question B3 [2 points]. Examine, analytically and graphically in a diagramme drawn in the PD-z space, the effects of the increase in i*, and show that in the new equilibrium domestic prices can be...
-
Monitor and review coaching strategy. Assume that it is 3 months since the coaching strategy commenced and you have requested all coaches and trainees involved in the coaching program to complete the...
-
The movement of a bike's cylinder has been modelled by the software as represented in the diagram below when rotated by a crankshaft as indicated at point O. You have been asked to use manual methods...
-
(1 point) A surival model has a survival function given by So(x) = (1 70 - X 130 Compute the curtate expectation of life for a person of age 70: Note: Round your answers to three decimal places. 4/9
-
Explain the circumstances that could result in a long-term bank loan being shown in a statement of financial position as a current liability.
-
Shell Oil Company leased to Flying Tiger Line a gasoline tank truck with a movable ladder for refueling certain types of aircraft. Under the terms of the lease, Flying Tiger was to maintain the...
-
This is an appeal from an order of * * * judgment award[ing] the plaintiff the sum of $138.50 as damages for breach of contract. This case grows out of the alleged refusal of the defendant to sell to...
-
The articles of partnership of the firm of Wilson and Company provide the following: William Smith to contribute $50,000; to receive interest thereon at 13 percent per annum and to devote such time...
-
Describe what sexual harassment is and what forms it can take.
-
Explain public policies that protect employees from unlawful discharge.
-
Discuss under what conditions unemployment compensation can be denied to a claimant.
Study smarter with the SolutionInn App