public class AdvancedAI extends TacticalAI
Constructor and Description |
---|
AdvancedAI(BattleParticipant participant)
Initializes the AI.
|
Modifier and Type | Method and Description |
---|---|
MoveChoice |
getNextMove(PixelmonWrapper pw)
Gets the move the AI will make next.
|
protected MoveChoice |
getNextMoveAttackOnly(PixelmonWrapper pw)
Gets the next move the Pokémon will make, limited to attacking.
|
protected java.util.List<MoveChoice> |
getNextOpponentMoves(PixelmonWrapper pw,
java.util.List<PixelmonWrapper> opponents)
Gets the next moves that the AI guesses the opponents will make.
|
protected boolean |
validateSwitch(PixelmonWrapper nextPokemon)
Does any additional checks to see if the switch-in is usable.
|
getBestChoices, getBestChoices, getMemory, getWeightedAttackChoices, pickBestChoice, pickBestChoice, registerMove, simulateStatusMove
getFaintedPokemonToRevive, getNextSwitch, resetSwitchSimulation
getAttackChoices, getAttackChoicesOpponentOnly, getBestAttackChoices, getBestAttackChoices, getChoices, getMoveset, getPossibleReviveIDs, getPossibleSwitchIDs, getRandomAttackChoice, getSwitchChoices, getWeightedOffensiveChoices, registerSwitch, weightFromOpponentOptions, weightFromOpponentOptions, weightFromUserOptions, weightFromUserOptions, weightOffensiveMove, weightOffensiveMove, weightOffensiveMoves, weightRandomMove, weightSingleTypeChange, weightStatusOpponentOptions, weightTypeChange, weightTypeChange
public AdvancedAI(BattleParticipant participant)
participant
- The participant controlled by the AI.public MoveChoice getNextMove(PixelmonWrapper pw)
BattleAIBase
getNextMove
in class TacticalAI
pw
- The Pokémon to make a move with.protected MoveChoice getNextMoveAttackOnly(PixelmonWrapper pw)
getNextMoveAttackOnly
in class AggressiveAI
pw
- The Pokémon choosing a move.protected java.util.List<MoveChoice> getNextOpponentMoves(PixelmonWrapper pw, java.util.List<PixelmonWrapper> opponents)
pw
- The Pokémon on the participant's side that is deciding a choice.opponents
- The opponents to get next moves from.protected boolean validateSwitch(PixelmonWrapper nextPokemon)
AggressiveAI
validateSwitch
in class AggressiveAI
nextPokemon
- The Pokémon switching in.