minor refactor of abstract `EncounterPokemonRequirement`
This commit is contained in:
parent
58d533fb34
commit
28d14ae45a
|
@ -31,12 +31,10 @@ export abstract class EncounterSceneRequirement implements EncounterRequirement
|
||||||
}
|
}
|
||||||
|
|
||||||
export abstract class EncounterPokemonRequirement implements EncounterRequirement {
|
export abstract class EncounterPokemonRequirement implements EncounterRequirement {
|
||||||
minNumberOfPokemon: number;
|
protected minNumberOfPokemon: number;
|
||||||
invertQuery: boolean;
|
protected invertQuery: boolean;
|
||||||
|
|
||||||
meetsRequirement(scene: BattleScene): boolean {
|
abstract meetsRequirement(scene: BattleScene): boolean;
|
||||||
throw new Error("Method not implemented.");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns all party members that are compatible with this requirement. For non pokemon related requirements, the entire party is returned..
|
// Returns all party members that are compatible with this requirement. For non pokemon related requirements, the entire party is returned..
|
||||||
queryParty(partyPokemon: PlayerPokemon[]): PlayerPokemon[] {
|
queryParty(partyPokemon: PlayerPokemon[]): PlayerPokemon[] {
|
||||||
|
@ -954,3 +952,5 @@ export class WeightRequirement extends EncounterPokemonRequirement {
|
||||||
return ["weight", pokemon.getWeight().toString()];
|
return ["weight", pokemon.getWeight().toString()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue