mechanics
Class PokemonNature

java.lang.Object
  extended by mechanics.PokemonNature
All Implemented Interfaces:
java.io.Serializable

public class PokemonNature
extends java.lang.Object
implements java.io.Serializable

This class represents the nature of a pokemon in the advance generation.

See Also:
Serialized Form

Field Summary
static PokemonNature N_ADAMANT
           
static PokemonNature N_BASHFUL
           
static PokemonNature N_BOLD
           
static PokemonNature N_BRAVE
           
static PokemonNature N_CALM
           
static PokemonNature N_CAREFUL
           
static PokemonNature N_DOCILE
           
static PokemonNature N_GENTLE
           
static PokemonNature N_HARDY
           
static PokemonNature N_HASTY
           
static PokemonNature N_IMPISH
           
static PokemonNature N_JOLLY
           
static PokemonNature N_LAX
           
static PokemonNature N_LONELY
           
static PokemonNature N_MILD
           
static PokemonNature N_MODEST
           
static PokemonNature N_NAIVE
           
static PokemonNature N_NAUGHTY
           
static PokemonNature N_QUIET
           
static PokemonNature N_QUIRKY
           
static PokemonNature N_RASH
           
static PokemonNature N_RELAXED
           
static PokemonNature N_SASSY
           
static PokemonNature N_SERIOUS
           
static PokemonNature N_TIMID
           
 
Method Summary
 int getBenefits()
          Gets the stat that this nature benefits
 double getEffect(int i)
          Get the effect a nature has on a particular stat.
 int getHarms()
          Gets the stat that this nature hinders
 java.lang.String getName()
          Get a textual representation of the nature.
static PokemonNature getNature(int i)
          Get a nature by index.
static java.lang.String[] getNatureNames()
          Get a list of natures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_LONELY

public static final PokemonNature N_LONELY

N_BRAVE

public static final PokemonNature N_BRAVE

N_ADAMANT

public static final PokemonNature N_ADAMANT

N_NAUGHTY

public static final PokemonNature N_NAUGHTY

N_BOLD

public static final PokemonNature N_BOLD

N_RELAXED

public static final PokemonNature N_RELAXED

N_IMPISH

public static final PokemonNature N_IMPISH

N_LAX

public static final PokemonNature N_LAX

N_TIMID

public static final PokemonNature N_TIMID

N_HASTY

public static final PokemonNature N_HASTY

N_JOLLY

public static final PokemonNature N_JOLLY

N_NAIVE

public static final PokemonNature N_NAIVE

N_MODEST

public static final PokemonNature N_MODEST

N_MILD

public static final PokemonNature N_MILD

N_QUIET

public static final PokemonNature N_QUIET

N_RASH

public static final PokemonNature N_RASH

N_CALM

public static final PokemonNature N_CALM

N_GENTLE

public static final PokemonNature N_GENTLE

N_SASSY

public static final PokemonNature N_SASSY

N_CAREFUL

public static final PokemonNature N_CAREFUL

N_QUIRKY

public static final PokemonNature N_QUIRKY

N_HARDY

public static final PokemonNature N_HARDY

N_SERIOUS

public static final PokemonNature N_SERIOUS

N_BASHFUL

public static final PokemonNature N_BASHFUL

N_DOCILE

public static final PokemonNature N_DOCILE
Method Detail

getNature

public static PokemonNature getNature(int i)
Get a nature by index.


getEffect

public double getEffect(int i)
Get the effect a nature has on a particular stat. This will be 0.9, 1, or 1.1.

Parameters:
i - the index of the statistic

getNatureNames

public static java.lang.String[] getNatureNames()
Get a list of natures.


getName

public java.lang.String getName()
Get a textual representation of the nature.


getBenefits

public int getBenefits()
Gets the stat that this nature benefits


getHarms

public int getHarms()
Gets the stat that this nature hinders