public class MoveClause extends BattleClause
BattleClause to check if the pokemon has/hasn't got a given move| Constructor and Description |
|---|
MoveClause(java.lang.String id,
boolean ban,
java.util.Optional<ImmutableAttack>... moves)
Creates a clause to check if the pokemon has a given move.
|
| 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, validateTeam@SafeVarargs
public MoveClause(java.lang.String id,
boolean ban,
java.util.Optional<ImmutableAttack>... moves)
id - The unique ID of the battle clause.moves - The unlocalized names of moves to ban.public boolean validateSingle(Pokemon pokemon)
BattleClausevalidateSingle in class BattleClausepokemon - The Pokémon to check.