shoddybattle
Class PokemonMass

java.lang.Object
  extended by shoddybattle.PokemonMass

public class PokemonMass
extends java.lang.Object

Ugly hack for getting pokemon masses from a file separate from the species data. Ugly indeed.


Constructor Summary
PokemonMass()
           
 
Method Summary
static double getMass(Pokemon species)
          Get the mass of a given pokemon.
static double getMass(java.lang.String species)
          Get the mass of a given pokemon.
static void loadMasses(java.io.File f)
          Load the masses from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PokemonMass

public PokemonMass()
Method Detail

loadMasses

public static void loadMasses(java.io.File f)
                       throws java.io.FileNotFoundException
Load the masses from a file.

Throws:
java.io.FileNotFoundException

getMass

public static double getMass(Pokemon species)
Get the mass of a given pokemon.


getMass

public static double getMass(java.lang.String species)
Get the mass of a given pokemon.