mechanics.moves
Class MoveList.PerfectAccuracyMove

java.lang.Object
  extended by mechanics.moves.PokemonMove
      extended by mechanics.moves.MoveList.PerfectAccuracyMove
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
MoveList

public static class MoveList.PerfectAccuracyMove
extends PokemonMove

A move that always hits unless the opponent is underground or flying.


Field Summary
 
Fields inherited from class mechanics.moves.PokemonMove
m_accuracy, m_entry, m_power, m_pp, m_type
 
Constructor Summary
MoveList.PerfectAccuracyMove(PokemonType type, int power, int pp)
           
 
Method Summary
 boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target)
          Attempt to hit an enemy.
static boolean isHit(BattleMechanics mech, Pokemon user, Pokemon target)
           
 
Methods inherited from class mechanics.moves.PokemonMove
beginTurn, canCriticalHit, clone, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isAttack, isBuggy, isDamaging, isSpecial, setAccuracy, setPower, setType, switchIn, use
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveList.PerfectAccuracyMove

public MoveList.PerfectAccuracyMove(PokemonType type,
                                    int power,
                                    int pp)
Method Detail

isHit

public static boolean isHit(BattleMechanics mech,
                            Pokemon user,
                            Pokemon target)

attemptHit

public boolean attemptHit(BattleMechanics mech,
                          Pokemon user,
                          Pokemon target)
Description copied from class: PokemonMove
Attempt to hit an enemy.

Overrides:
attemptHit in class PokemonMove