|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.PokemonType
public class PokemonType
This class represents the type of a pokemon or of a move.
Field Summary | |
---|---|
static PokemonType |
T_BUG
|
static PokemonType |
T_DARK
|
static PokemonType |
T_DRAGON
|
static PokemonType |
T_ELECTRIC
|
static PokemonType |
T_FIGHTING
|
static PokemonType |
T_FIRE
|
static PokemonType |
T_FLYING
|
static PokemonType |
T_GHOST
|
static PokemonType |
T_GRASS
|
static PokemonType |
T_GROUND
|
static PokemonType |
T_ICE
|
static PokemonType |
T_NORMAL
Constants representing each of the types. |
static PokemonType |
T_POISON
|
static PokemonType |
T_PSYCHIC
|
static PokemonType |
T_ROCK
|
static PokemonType |
T_STEEL
|
static PokemonType |
T_TYPELESS
|
static PokemonType |
T_WATER
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object type)
Return whether this type is equal to the test type. |
double |
getMultiplier(PokemonType type)
Get the multiplier when attacking a pokemon of a given type. |
static PokemonType |
getType(int i)
Get a PokemonType object by its id. |
static PokemonType |
getType(java.lang.String type)
Initialise the type by name. |
static PokemonType[] |
getTypes()
Return the list of types. |
boolean |
isSpecial()
Return whether this type deals special damage. |
java.lang.String |
toString()
Get a textual representation of this type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PokemonType T_NORMAL
public static final PokemonType T_FIRE
public static final PokemonType T_WATER
public static final PokemonType T_ELECTRIC
public static final PokemonType T_GRASS
public static final PokemonType T_ICE
public static final PokemonType T_FIGHTING
public static final PokemonType T_POISON
public static final PokemonType T_GROUND
public static final PokemonType T_FLYING
public static final PokemonType T_PSYCHIC
public static final PokemonType T_BUG
public static final PokemonType T_ROCK
public static final PokemonType T_GHOST
public static final PokemonType T_DRAGON
public static final PokemonType T_DARK
public static final PokemonType T_STEEL
public static final PokemonType T_TYPELESS
Method Detail |
---|
public static PokemonType[] getTypes()
public static PokemonType getType(int i)
public static PokemonType getType(java.lang.String type)
public boolean isSpecial()
public double getMultiplier(PokemonType type)
type
- the type of the defending pokemonpublic boolean equals(java.lang.Object type)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |