public class AggressiveAI extends BattleAIBase
| Constructor and Description |
|---|
AggressiveAI(BattleParticipant participant)
Initializes the AI.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.UUID |
getFaintedPokemonToRevive()
Gets a Pokémon to revive when forced to revive.
|
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.
|
java.util.UUID |
getNextSwitch(PixelmonWrapper pw)
Gets a Pokémon to switch to when forced to switch.
|
protected void |
resetSwitchSimulation(PixelmonWrapper current,
int controlledIndex,
PixelmonWrapper simulated)
Resets variables that are temporarily modified when simulating switches.
|
protected boolean |
validateSwitch(PixelmonWrapper nextPokemon)
Does any additional checks to see if the switch-in is usable.
|
getAttackChoices, getAttackChoicesOpponentOnly, getBestAttackChoices, getBestAttackChoices, getChoices, getMoveset, getPossibleReviveIDs, getPossibleSwitchIDs, getRandomAttackChoice, getSwitchChoices, getWeightedOffensiveChoices, registerMove, registerSwitch, weightFromOpponentOptions, weightFromOpponentOptions, weightFromUserOptions, weightFromUserOptions, weightOffensiveMove, weightOffensiveMove, weightOffensiveMoves, weightRandomMove, weightSingleTypeChange, weightStatusOpponentOptions, weightTypeChange, weightTypeChangepublic AggressiveAI(BattleParticipant participant)
participant - The participant controlled by the AI.public MoveChoice getNextMove(PixelmonWrapper pw)
BattleAIBasegetNextMove in class BattleAIBasepw - The Pokémon to make a move with.protected MoveChoice getNextMoveAttackOnly(PixelmonWrapper pw)
pw - The Pokémon choosing a move.public java.util.UUID getNextSwitch(PixelmonWrapper pw)
BattleAIBasegetNextSwitch in class BattleAIBasepw - The Pokémon switching out.public java.util.UUID getFaintedPokemonToRevive()
BattleAIBasegetFaintedPokemonToRevive in class BattleAIBaseprotected boolean validateSwitch(PixelmonWrapper nextPokemon)
nextPokemon - The Pokémon switching in.protected void resetSwitchSimulation(PixelmonWrapper current, int controlledIndex, PixelmonWrapper simulated)
current - The Pokémon switching out.controlledIndex - The index of the current Pokémon in the controlled Pokémon array.simulated - The Pokémon simulating switching in.