ensure that it has the following: a. Variables Name -String ii. iii. iv. v. i. Level - int Health - int Attack - int Туре - String Attacks vi. 1. Hashmap that maps a String attack name to an Integer Damage Modifier b. Methods i. Setters and Getters for All variables 1. Ensure that there are checks on all setters to only set reasonable values ii. 2 Constructors 1. 1 Default, 1 that sets all variables iii. setPokemon 1. Setter that sets all variables for a pokemon iv. addAttack 1. Add attack to attacks array c. Additional Methods i. toString 1. Returns an appropriate string with all variables from the class equals 1. Compares this object against another object O and returns a ii. boolean showing if they are equal or not iii. readinput -> Gather details of a pokemon writeOutput ->print details of a pokemon (separate from toString) iv. d. Interfaces i. Ensure that pokemon implements the compareTo interface 1. Pokemon should be able sorted by the alphabetical order of their names fightable interface 1. Create a fightable interface and ensure that pokemon implements ii. it a. Fightable should have the following method requirements dealDamage->method that allows the fightable to attack another fightable and deal damage to its i. bealth Has damage and figthtable as parameters

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

FOR JAVA 

1. Create a Class called Pokemon (you can use the one we previously worked on) and
ensure that it has the following:
a. Variables
i.
Name -String
ii.
Level - int
i.
Health - int
iv.
Туре - String
Attack - int
V.
vi.
Attacks
1. Hashmap that maps a String attack name to an Integer Damage
Modifier
b. Methods
i.
Setters and Getters for All variables
1. Ensure that there are checks on all setters to only set reasonable
values
ii.
2 Constructors
1. 1 Default, 1 that sets all variables
iii.
setPokemon
1. Setter that sets all variables for a pokemon
iv.
addAttack
1. Add attack to attacks array
c. Additional Methods
toString
1. Returns an appropriate string with all variables from the class
equals
1. Compares this object against another object O and returns a
i.
ii.
boolean showing if they are equal or not
i.
readlnput -> Gather details of a pokemon
writeOutput ->print details of a pokemon (separate from toString)
iv.
d. Interfaces
i.
Ensure that pokemon implements the compare To interface
1. Pokemon should be able sorted by the alphabetical order of their
names
i.
fightable
1. Create a fightable interface and ensure that pokemon implements
it
a. Fightable should have the following method requirements
dealDamage->method that allows the fightable to
attack another fightable and deal damage to its
health. Has damage and figthtable as parameters
i.
ii.
setHealth, getHealth
ii.
Make sure that pokemon are able to be written to a binary file via the
serializable interface
Transcribed Image Text:1. Create a Class called Pokemon (you can use the one we previously worked on) and ensure that it has the following: a. Variables i. Name -String ii. Level - int i. Health - int iv. Туре - String Attack - int V. vi. Attacks 1. Hashmap that maps a String attack name to an Integer Damage Modifier b. Methods i. Setters and Getters for All variables 1. Ensure that there are checks on all setters to only set reasonable values ii. 2 Constructors 1. 1 Default, 1 that sets all variables iii. setPokemon 1. Setter that sets all variables for a pokemon iv. addAttack 1. Add attack to attacks array c. Additional Methods toString 1. Returns an appropriate string with all variables from the class equals 1. Compares this object against another object O and returns a i. ii. boolean showing if they are equal or not i. readlnput -> Gather details of a pokemon writeOutput ->print details of a pokemon (separate from toString) iv. d. Interfaces i. Ensure that pokemon implements the compare To interface 1. Pokemon should be able sorted by the alphabetical order of their names i. fightable 1. Create a fightable interface and ensure that pokemon implements it a. Fightable should have the following method requirements dealDamage->method that allows the fightable to attack another fightable and deal damage to its health. Has damage and figthtable as parameters i. ii. setHealth, getHealth ii. Make sure that pokemon are able to be written to a binary file via the serializable interface
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY