Class AdvancedAI
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase
com.pixelmonmod.pixelmon.battles.controller.ai.AggressiveAI
com.pixelmonmod.pixelmon.battles.controller.ai.TacticalAI
com.pixelmonmod.pixelmon.battles.controller.ai.AdvancedAI
Uses all moves intelligently and switches out when advantageous.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the move the AI will make next.protected MoveChoice
Gets the next move the Pokémon will make, limited to attacking.protected List<MoveChoice>
getNextOpponentMoves
(PixelmonWrapper pw, 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.Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.TacticalAI
getBestChoices, getBestChoices, getMemory, getWeightedAttackChoices, pickBestChoice, pickBestChoice, registerMove, simulateStatusMove
Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.AggressiveAI
getFaintedPokemonToRevive, getNextSwitch, resetSwitchSimulation
Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase
getAttackChoices, getAttackChoicesOpponentOnly, getBestAttackChoices, getBestAttackChoices, getChoices, getMoveset, getPossibleReviveIDs, getPossibleSwitchIDs, getRandomAttackChoice, getSwitchChoices, getWeightedOffensiveChoices, registerSwitch, weightFromOpponentOptions, weightFromOpponentOptions, weightFromUserOptions, weightFromUserOptions, weightOffensiveMove, weightOffensiveMove, weightOffensiveMoves, weightRandomMove, weightSingleTypeChange, weightStatusOpponentOptions, weightTypeChange, weightTypeChange
-
Constructor Details
-
AdvancedAI
Initializes the AI.- Parameters:
participant
- The participant controlled by the AI.
-
-
Method Details
-
getNextMove
Description copied from class:BattleAIBase
Gets the move the AI will make next.- Overrides:
getNextMove
in classTacticalAI
- Parameters:
pw
- The Pokémon to make a move with.- Returns:
- The move the AI will make next.
-
getNextMoveAttackOnly
Gets the next move the Pokémon will make, limited to attacking.- Overrides:
getNextMoveAttackOnly
in classAggressiveAI
- Parameters:
pw
- The Pokémon choosing a move.- Returns:
- The next move the Pokémon will make, limited to attacking.
-
getNextOpponentMoves
protected List<MoveChoice> getNextOpponentMoves(PixelmonWrapper pw, List<PixelmonWrapper> opponents) Gets the next moves that the AI guesses the opponents will make.- Parameters:
pw
- The Pokémon on the participant's side that is deciding a choice.opponents
- The opponents to get next moves from.- Returns:
- The next moves that the AI guesses the opponents will make.
-
validateSwitch
Description copied from class:AggressiveAI
Does any additional checks to see if the switch-in is usable.- Overrides:
validateSwitch
in classAggressiveAI
- Parameters:
nextPokemon
- The Pokémon switching in.- Returns:
- Whether the switch-in is usable.
-