mechanics
Class JewelMechanics

java.lang.Object
  extended by mechanics.BattleMechanics
      extended by mechanics.AdvanceMechanics
          extended by mechanics.JewelMechanics
All Implemented Interfaces:
java.io.Serializable

public class JewelMechanics
extends AdvanceMechanics

Mechanics for the DS games (diamond/pearl), or the "Jewel Generation".

See Also:
Serialized Form

Constructor Summary
JewelMechanics(int bytes)
           
 
Method Summary
 boolean isMoveSpecial(PokemonMove move)
          Return whether a given move deals special damage.
static void loadMoveTypes(java.io.File f)
          Load the move types from the given file.
 
Methods inherited from class mechanics.AdvanceMechanics
attemptHit, calculateDamage, calculateStat, isCriticalHit, validateHiddenStats
 
Methods inherited from class mechanics.BattleMechanics
calculateDamage, getRandom, getRandomBytes, getRandomSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JewelMechanics

public JewelMechanics(int bytes)
Method Detail

loadMoveTypes

public static void loadMoveTypes(java.io.File f)
                          throws java.io.FileNotFoundException
Load the move types from the given file.

Throws:
java.io.FileNotFoundException

isMoveSpecial

public boolean isMoveSpecial(PokemonMove move)
Return whether a given move deals special damage. In Diamond/Pearl, this is based on the move, not its type.

Overrides:
isMoveSpecial in class AdvanceMechanics