mechanics.moves
Class WeatherMove

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

public class WeatherMove
extends PokemonMove

A FieldMove is a move that a pokemon can use that applies a set of field effects to the field (not to a particular pokemon).


Field Summary
 
Fields inherited from class mechanics.moves.PokemonMove
m_accuracy, m_entry, m_power, m_pp, m_type
 
Constructor Summary
WeatherMove(PokemonType type, int pp, java.lang.Class[] effects, java.lang.String item)
          Creates a new instance of FieldMove
 
Method Summary
 boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target)
          Attempt to hit an enemy.
 java.lang.Object clone()
          Clone this move.
 int use(BattleMechanics mech, Pokemon user, Pokemon target)
          Cause a pokemon to use this move on another pokemon.
 
Methods inherited from class mechanics.moves.PokemonMove
beginTurn, canCriticalHit, 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
 

Constructor Detail

WeatherMove

public WeatherMove(PokemonType type,
                   int pp,
                   java.lang.Class[] effects,
                   java.lang.String item)
Creates a new instance of FieldMove

Method Detail

clone

public java.lang.Object clone()
Description copied from class: PokemonMove
Clone this move.

Overrides:
clone in class PokemonMove

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

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