Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.19 KB | None | 0 0
  1. public class Pokemon {
  2.     //instantiate variables for array
  3.     private String name, type1, type2;
  4.     private int id, total, hp, attack, defence, spAttack, spDefence, speed, generation;
  5.     private boolean legendary;
  6.  
  7.     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) {
  8.         this.id = Integer.parseInt(number);
  9.         this.name = name;
  10.         this.type1 = type1;
  11.         this.type2 = type2;
  12.         this.total = Integer.parseInt(total);
  13.         this.hp = Integer.parseInt(hp);
  14.         this.attack = Integer.parseInt(attack);
  15.         this.defence = Integer.parseInt(defence);
  16.         this.spAttack = Integer.parseInt(spAttack);
  17.         this.spDefence = Integer.parseInt(spDefence);
  18.         this.speed = Integer.parseInt(speed);
  19.         this.generation = Integer.parseInt(generation);
  20.         this.legendary = Boolean.parseBoolean(legendary);
  21.     }
  22.  
  23.     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) {
  24.     }
  25.  
  26.  
  27.     public String getName() {
  28.         return name;
  29.     }
  30.  
  31.     public void setName(String name) {
  32.         this.name = name;
  33.     }
  34.  
  35.     public String getType1() {
  36.         return type1;
  37.     }
  38.  
  39.     public void setType1(String type1) {
  40.         this.type1 = type1;
  41.     }
  42.  
  43.     public String getType2() {
  44.         return type2;
  45.     }
  46.  
  47.     public void setType2(String type2) {
  48.         this.type2 = type2;
  49.     }
  50.  
  51.     public int getId() {
  52.         return id;
  53.     }
  54.  
  55.     public void setId(int id) {
  56.         this.id = id;
  57.     }
  58.  
  59.     public int getTotal() {
  60.         return total;
  61.     }
  62.  
  63.     public void setTotal(int total) {
  64.         this.total = total;
  65.     }
  66.  
  67.     public int getHp() {
  68.         return hp;
  69.     }
  70.  
  71.     public void setHp(int hp) {
  72.         this.hp = hp;
  73.     }
  74.  
  75.     public int getAttack() {
  76.         return attack;
  77.     }
  78.  
  79.     public void setAttack(int attack) {
  80.         this.attack = attack;
  81.     }
  82.  
  83.     public int getDefence() {
  84.         return defence;
  85.     }
  86.  
  87.     public void setDefence(int defence) {
  88.         this.defence = defence;
  89.     }
  90.  
  91.     public int getSpAttack() {
  92.         return spAttack;
  93.     }
  94.  
  95.     public void setSpAttack(int spAttack) {
  96.         this.spAttack = spAttack;
  97.     }
  98.  
  99.     public int getSpDefence() {
  100.         return spDefence;
  101.     }
  102.  
  103.     public void setSpDefence(int spDefence) {
  104.         this.spDefence = spDefence;
  105.     }
  106.  
  107.     public int getSpeed() {
  108.         return speed;
  109.     }
  110.  
  111.     public void setSpeed(int speed) {
  112.         this.speed = speed;
  113.     }
  114.  
  115.     public int getGeneration() {
  116.         return generation;
  117.     }
  118.  
  119.     public void setGeneration(int generation) {
  120.         this.generation = generation;
  121.     }
  122.  
  123.     public boolean isLegendary() {
  124.         return legendary;
  125.     }
  126.  
  127.     public void setLegendary(boolean legendary) {
  128.         this.legendary = legendary;
  129.     }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement