public class Squirtle extends Pokemon
Modifier and Type | Field and Description |
---|---|
private int |
atk |
private int |
def |
private int |
hp |
private int |
spAtk |
private int |
spd |
private int |
spDef |
private int |
type |
Constructor and Description |
---|
Squirtle() |
Modifier and Type | Method and Description |
---|---|
int |
getAtk()
Returns attack stat of Pokemon.
|
int |
getDef()
Returns defense stat of Pokemon.
|
int |
getspAtk()
Returns special attack stat of Pokemon.
|
int |
getspDef()
Returns special defense stat of Pokemon.
|
double |
move1()
Returns power and type of Pokemon's 1st move.
|
double |
move2()
Returns power and type of Pokemon's 2nd move.
|
double |
move3()
Returns power and type of Pokemon's 3rd move.
|
double |
move4()
Returns power and type of Pokemon's 4th move.
|
void |
takeDamage(Pokemon p,
int m)
Calculates the damage it takes based on opponent's attack stat,
power of the move, and its own defense.
|
private int hp
private int atk
private int def
private int spAtk
private int spDef
private int spd
private int type
public void takeDamage(Pokemon p, int m)
takeDamage
in class Pokemon
Pokemon,
- intpublic int getAtk()
public int getDef()
public int getspAtk()
public int getspDef()
public double move1()
public double move2()
public double move3()