public enum Type extends java.lang.Enum<Type>
getEffect(Type...)
для расчета эффективности атаки против покемона.
Тип NONE
обознаает отсутствие типа. Атака типа NONE имеет нормальный эффект против всех типов покемонов.
Против покемона типа NONE все атаки имеют нормальный эффект.Enum Constant and Description |
---|
BUG |
DARK |
DRAGON |
ELECTRIC |
FAIRY |
FIGHTING |
FIRE |
FLYING |
GHOST |
GRASS |
GROUND |
ICE |
NONE |
NORMAL |
POISON |
PSYCHIC |
ROCK |
STEEL |
WATER |
Modifier and Type | Method and Description |
---|---|
double |
getEffect(Type... types)
|
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type NORMAL
public static final Type FIRE
public static final Type WATER
public static final Type ELECTRIC
public static final Type GRASS
public static final Type ICE
public static final Type FIGHTING
public static final Type POISON
public static final Type GROUND
public static final Type FLYING
public static final Type PSYCHIC
public static final Type BUG
public static final Type ROCK
public static final Type GHOST
public static final Type DRAGON
public static final Type DARK
public static final Type STEEL
public static final Type FAIRY
public static final Type NONE
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic double getEffect(Type... types)
types
- один или несколько типов, для которых надо рассчитать эффект