public class PokemonBanClause extends BattleClause
| Constructor and Description |
|---|
PokemonBanClause(java.lang.String id,
PokemonBase... pokemon)
Creates a clause to ban certain Pokémon.
|
PokemonBanClause(java.lang.String id,
Species... pokemon)
Creates a clause to ban certain Pokémon.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateSingle(Pokemon pokemon)
Checks if the rule allows a Pokémon to be chosen for battle.
|
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString, validateTeampublic PokemonBanClause(java.lang.String id,
Species... pokemon)
id - The unique ID of the battle clause.pokemon - The banned Pokémon.public PokemonBanClause(java.lang.String id,
PokemonBase... pokemon)
id - The unique ID of the battle clause.pokemon - The banned Pokémon.public boolean validateSingle(Pokemon pokemon)
BattleClausevalidateSingle in class BattleClausepokemon - The Pokémon to check.