mechanics.moves
Class HiddenPowerMove

java.lang.Object
  extended by mechanics.moves.PokemonMove
      extended by mechanics.moves.HiddenPowerMove
All Implemented Interfaces:
java.lang.Cloneable

public class HiddenPowerMove
extends PokemonMove


Field Summary
 
Fields inherited from class mechanics.moves.PokemonMove
m_accuracy, m_entry, m_power, m_pp, m_type
 
Constructor Summary
HiddenPowerMove()
          Creates a new instance of HiddenPowerMove
 
Method Summary
 void beginTurn(BattleTurn[] turns, int index, Pokemon source)
          This function is called at the beginning on a turn on which this move is about to be used.
 boolean isAttack()
          Returns whether this move is an attack.
 void switchIn(Pokemon source)
          This method is called when a pokemon who has this move is switched into the field.
 
Methods inherited from class mechanics.moves.PokemonMove
attemptHit, canCriticalHit, clone, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isBuggy, isDamaging, isSpecial, setAccuracy, setPower, setType, use
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenPowerMove

public HiddenPowerMove()
Creates a new instance of HiddenPowerMove

Method Detail

isAttack

public boolean isAttack()
Description copied from class: PokemonMove
Returns whether this move is an attack. This method is shoddy and should be overridden by any exceptions.

Overrides:
isAttack in class PokemonMove

beginTurn

public void beginTurn(BattleTurn[] turns,
                      int index,
                      Pokemon source)
Description copied from class: PokemonMove
This function is called at the beginning on a turn on which this move is about to be used.

Overrides:
beginTurn in class PokemonMove
Parameters:
turns - the moves about to be used on this turn
index - the position of the source pokemon in the turn array
source - the pokemon who is using the move

switchIn

public void switchIn(Pokemon source)
Description copied from class: PokemonMove
This method is called when a pokemon who has this move is switched into the field.

Overrides:
switchIn in class PokemonMove