mechanics.moves
Class MoveList.FixedAttackMove

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

public static class MoveList.FixedAttackMove
extends StatusMove

A move that prevents the user from using other moves until the move misses or the number of turns is reached.


Field Summary
 
Fields inherited from class mechanics.moves.PokemonMove
m_accuracy, m_entry, m_power, m_pp, m_type
 
Constructor Summary
MoveList.FixedAttackMove(PokemonType type, int power, double accuracy, int pp, MoveList.FixedAttackEffect eff)
           
 
Method Summary
 boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target)
          Attempt a hit.
 int use(BattleMechanics mech, Pokemon user, Pokemon target)
          The rules for whether this move can hit are elaborate.
 
Methods inherited from class mechanics.moves.StatusMove
clone, getEffects, isAttack, isBuggy, isDamaging, isEffective, setAttacker
 
Methods inherited from class mechanics.moves.PokemonMove
beginTurn, canCriticalHit, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isSpecial, setAccuracy, setPower, setType, switchIn
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveList.FixedAttackMove

public MoveList.FixedAttackMove(PokemonType type,
                                int power,
                                double accuracy,
                                int pp,
                                MoveList.FixedAttackEffect eff)
Method Detail

attemptHit

public boolean attemptHit(BattleMechanics mech,
                          Pokemon user,
                          Pokemon target)
Description copied from class: StatusMove
Attempt a hit. Personal enhancement moves never miss, but other status moves can.

Overrides:
attemptHit in class StatusMove

use

public int use(BattleMechanics mech,
               Pokemon user,
               Pokemon target)
Description copied from class: StatusMove
The rules for whether this move can hit are elaborate. If the move does damage then the normal type rules apply; if the move has no effect then it will not inflict statuses either. However, if the move does not do damage and does not inflict one of the SPECIAL_EFFECT_LOCK statuses then it can hit even types normally immune to the move's type.

Two intrinsic abilities also affect this method. If the user has Serene Grace then the chance of each effect being applied is double. If the target has Shield Dust then none of the effects can be applied to it so long as the move does damage.

Overrides:
use in class StatusMove