-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ivysaur.java
24 lines (20 loc) · 834 Bytes
/
Ivysaur.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
*
*/
public class Ivysaur extends Bulbasaur{
static final int BASE_ATTACK_POWER = 156;
static final int BASE_DEFENSE_POWER = 158;
static final int BASE_STAMINA_POWER = 120;
/* Constructor with no name */
public Ivysaur(){
super("Ivysaur", "Ivysaur", 2, 1.0, 13.0,BASE_ATTACK_POWER, BASE_DEFENSE_POWER, BASE_STAMINA_POWER );
}
/* Constructor with name */
public Ivysaur(String name){
super("Ivysaur", name, 2, 1.0, 13.0,BASE_ATTACK_POWER, BASE_DEFENSE_POWER, BASE_STAMINA_POWER );
}
/* Constructor with species and name for subclasses */
protected Ivysaur(String species,String name, int num, double ht, double wt, int baseAttackPwr, int baseDefensePwr, int baseStaminaPwr){
super(species, name, num, ht, wt, baseAttackPwr, baseDefensePwr, baseStaminaPwr);
}
}