mechanics.moves
Class HealthBasedMove

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

public class HealthBasedMove
extends PokemonMove

A move that does higher damage when the user has more Hp


Field Summary
 
Fields inherited from class mechanics.moves.PokemonMove
m_accuracy, m_entry, m_power, m_pp, m_type
 
Constructor Summary
HealthBasedMove(PokemonType type, double accuracy, int pp, boolean highHp)
           
 
Method Summary
 boolean isAttack()
          Returns whether this move is an attack.
 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
attemptHit, beginTurn, canCriticalHit, clone, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, 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

HealthBasedMove

public HealthBasedMove(PokemonType type,
                       double accuracy,
                       int pp,
                       boolean highHp)
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

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