Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pokemon {
- //instantiate variables for array
- private String name, type1, type2;
- private int id, total, hp, attack, defence, spAttack, spDefence, speed, generation;
- private boolean legendary;
- public Pokemon(String number, String name, String type1, String type2, String total, String hp, String attack, String defence, String spAttack, String spDefence, String speed, String generation, String legendary) {
- this.id = Integer.parseInt(number);
- this.name = name;
- this.type1 = type1;
- this.type2 = type2;
- this.total = Integer.parseInt(total);
- this.hp = Integer.parseInt(hp);
- this.attack = Integer.parseInt(attack);
- this.defence = Integer.parseInt(defence);
- this.spAttack = Integer.parseInt(spAttack);
- this.spDefence = Integer.parseInt(spDefence);
- this.speed = Integer.parseInt(speed);
- this.generation = Integer.parseInt(generation);
- this.legendary = Boolean.parseBoolean(legendary);
- }
- public Pokemon(int parseInt, String pokemonDetail, String pokemonDetail1, String pokemonDetail2, String pokemonDetail3, String pokemonDetail4, String pokemonDetail5, String pokemonDetail6, String pokemonDetail7, String pokemonDetail8, String pokemonDetail9, String pokemonDetail10, String pokemonDetail11) {
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getType1() {
- return type1;
- }
- public void setType1(String type1) {
- this.type1 = type1;
- }
- public String getType2() {
- return type2;
- }
- public void setType2(String type2) {
- this.type2 = type2;
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public int getTotal() {
- return total;
- }
- public void setTotal(int total) {
- this.total = total;
- }
- public int getHp() {
- return hp;
- }
- public void setHp(int hp) {
- this.hp = hp;
- }
- public int getAttack() {
- return attack;
- }
- public void setAttack(int attack) {
- this.attack = attack;
- }
- public int getDefence() {
- return defence;
- }
- public void setDefence(int defence) {
- this.defence = defence;
- }
- public int getSpAttack() {
- return spAttack;
- }
- public void setSpAttack(int spAttack) {
- this.spAttack = spAttack;
- }
- public int getSpDefence() {
- return spDefence;
- }
- public void setSpDefence(int spDefence) {
- this.spDefence = spDefence;
- }
- public int getSpeed() {
- return speed;
- }
- public void setSpeed(int speed) {
- this.speed = speed;
- }
- public int getGeneration() {
- return generation;
- }
- public void setGeneration(int generation) {
- this.generation = generation;
- }
- public boolean isLegendary() {
- return legendary;
- }
- public void setLegendary(boolean legendary) {
- this.legendary = legendary;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement