public abstract class Pokemon
extends java.lang.Object
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 |
---|
Pokemon() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getAtk()
Returns Pokemon's attack stat.
|
abstract int |
getDef()
Returns Pokemon's defense stat.
|
abstract int |
getspAtk()
Returns Pokemon's special attack stat.
|
abstract int |
getspDef()
Returns Pokemon's special defense stat.
|
abstract double |
move1()
Returns power and type of a move.
|
abstract double |
move2()
Returns power and type of a move.
|
abstract double |
move3()
Returns power and type of a move.
|
abstract double |
move4()
Returns power and type of a move.
|
abstract void |
takeDamage(Pokemon p,
int m)
Calculates damage recieved from an attack.
|
private int hp
private int atk
private int def
private int spAtk
private int spDef
private int spd
private int type
public abstract void takeDamage(Pokemon p, int m)
Pokemon,
- intpublic abstract int getAtk()
public abstract int getDef()
public abstract int getspAtk()
public abstract int getspDef()
public abstract double move1()
public abstract double move2()
public abstract double move3()
public abstract double move4()