mechanics.moves
Class RecoilMove
java.lang.Object
mechanics.moves.PokemonMove
mechanics.moves.RecoilMove
- All Implemented Interfaces:
- java.lang.Cloneable
public class RecoilMove
- extends PokemonMove
Creates a move that does damage to the user equal to a percentage of the
damage done to the opponent.
Constructor Summary |
RecoilMove(PokemonType type,
int power,
double accuracy,
int pp,
double recoil)
Creates a new instance of RecoilMove |
Methods inherited from class mechanics.moves.PokemonMove |
attemptHit, beginTurn, canCriticalHit, clone, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isAttack, isBuggy, isDamaging, isSpecial, setAccuracy, setPower, setType, switchIn |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecoilMove
public RecoilMove(PokemonType type,
int power,
double accuracy,
int pp,
double recoil)
- Creates a new instance of RecoilMove
getRecoil
public int getRecoil(Pokemon p,
int damage)
isProtected
public boolean isProtected(Pokemon p)
use
public int use(BattleMechanics mech,
Pokemon user,
Pokemon target)
- Description copied from class:
PokemonMove
- Cause a pokemon to use this move on another pokemon.
- Overrides:
use
in class PokemonMove