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.
|
validateSingle
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString
public 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)
BattleClause
validateTeam
in class LogicalOrBattleClause
team
- The Pokémon to check.