public abstract class Evolution
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<EvoCondition> |
conditions |
static java.util.HashMap<java.lang.String,java.lang.Class<? extends Evolution>> |
evolutionTypes
A mapping from an evolution type ID string to the class representing that type.
|
java.lang.String |
evoType |
java.util.ArrayList<java.lang.String> |
moves |
PokemonSpecification |
to |
Constructor and Description |
---|
Evolution(java.lang.String evoType) |
Evolution(java.lang.String evoType,
PokemonSpecification to,
EvoCondition... conditions) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEvolve(PixelmonEntity pokemon) |
boolean |
consumesHeldItem() |
boolean |
doEvolution(PixelmonEntity pixelmon,
java.lang.String cause) |
void |
finishedEvolving(PixelmonEntity pokemon) |
void |
finishedEvolving(Pokemon pokemon) |
<T extends EvoCondition> |
getConditionsOfType(java.lang.Class<T> clazz) |
public static java.util.HashMap<java.lang.String,java.lang.Class<? extends Evolution>> evolutionTypes
public PokemonSpecification to
public java.util.ArrayList<EvoCondition> conditions
public java.util.ArrayList<java.lang.String> moves
public java.lang.String evoType
public Evolution(java.lang.String evoType)
public Evolution(java.lang.String evoType, PokemonSpecification to, EvoCondition... conditions)
protected boolean canEvolve(PixelmonEntity pokemon)
public boolean doEvolution(PixelmonEntity pixelmon, java.lang.String cause)
public void finishedEvolving(Pokemon pokemon)
public void finishedEvolving(PixelmonEntity pokemon)
public boolean consumesHeldItem()
public <T extends EvoCondition> java.util.List<T> getConditionsOfType(java.lang.Class<T> clazz)