Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a client class (one with a main method) that creates a new Battle Arena BattleArena arena = new BattleArena(); and play the game! You

image text in transcribed

Write a client class (one with a main method) that creates a new Battle Arena BattleArena arena = new BattleArena(); and play the game! You will need to have this running with your Pokemon and Pokedex, along with: System.out.println(p); Where p is an instance of one of your pokemon. Instructions for Battle Arena: This implementation of Battle arena will get 5 random pokemon from your pokedex. The program then creates an instance of DrawingPanel to display the pokemon and their stats. Team one is on top, and team 2 is on bottom. On a pokemon's turn, they may click one of the opposing team or one of their own team. If the apposing team is clicked, Battle Arena will use your getAtk and getDef methods. If getAtk>getDef, damage will be done to the attacked pokemon with the formula getAtk - getDef. If a member of the team whose turn it is is clicked, the program uses the getAtk method to decide how much to heal the pokemon who may or may not be injured. There is a red underline highlighting the current pokemon. If you have implemented the interfaces properly, the program will work. Your implementation of getAtk and getDef will dictate how the game is played. You must ensure that pokemon do not go over their max HP. Write a client class (one with a main method) that creates a new Battle Arena BattleArena arena = new BattleArena(); and play the game! You will need to have this running with your Pokemon and Pokedex, along with: System.out.println(p); Where p is an instance of one of your pokemon. Instructions for Battle Arena: This implementation of Battle arena will get 5 random pokemon from your pokedex. The program then creates an instance of DrawingPanel to display the pokemon and their stats. Team one is on top, and team 2 is on bottom. On a pokemon's turn, they may click one of the opposing team or one of their own team. If the apposing team is clicked, Battle Arena will use your getAtk and getDef methods. If getAtk>getDef, damage will be done to the attacked pokemon with the formula getAtk - getDef. If a member of the team whose turn it is is clicked, the program uses the getAtk method to decide how much to heal the pokemon who may or may not be injured. There is a red underline highlighting the current pokemon. If you have implemented the interfaces properly, the program will work. Your implementation of getAtk and getDef will dictate how the game is played. You must ensure that pokemon do not go over their max HP

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions