public class LogicalOrBattleClauseSingle extends LogicalOrBattleClause
| Constructor and Description |
|---|
LogicalOrBattleClauseSingle(java.lang.String id,
BattleClause... clauses)
Creates a clause to prevent multiple clauses from being violated at the same time.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateTeam(java.util.List<Pokemon> team)
Checks if the rule allows a list of Pokémon to be chosen for battle.
|
validateSinglecompareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toStringpublic LogicalOrBattleClauseSingle(java.lang.String id,
BattleClause... clauses)
id - The unique ID of the battle clause.clauses - The clauses that cannot be violated combined.public boolean validateTeam(java.util.List<Pokemon> team)
BattleClausevalidateTeam in class LogicalOrBattleClauseteam - The Pokémon to check.