public class RandomAI extends BattleAIBase
Constructor and Description |
---|
RandomAI(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.
|
java.util.UUID |
getNextSwitch(PixelmonWrapper pw)
Gets a Pokémon to switch to when forced to switch.
|
getAttackChoices, getAttackChoicesOpponentOnly, getBestAttackChoices, getBestAttackChoices, getChoices, getMoveset, getPossibleReviveIDs, getPossibleSwitchIDs, getRandomAttackChoice, getSwitchChoices, getWeightedOffensiveChoices, registerMove, registerSwitch, weightFromOpponentOptions, weightFromOpponentOptions, weightFromUserOptions, weightFromUserOptions, weightOffensiveMove, weightOffensiveMove, weightOffensiveMoves, weightRandomMove, weightSingleTypeChange, weightStatusOpponentOptions, weightTypeChange, weightTypeChange
public RandomAI(BattleParticipant participant)
participant
- The participant controlled by the AI.public MoveChoice getNextMove(PixelmonWrapper pw)
BattleAIBase
getNextMove
in class BattleAIBase
pw
- The Pokémon to make a move with.public java.util.UUID getNextSwitch(PixelmonWrapper pw)
BattleAIBase
getNextSwitch
in class BattleAIBase
pw
- The Pokémon switching out.public java.util.UUID getFaintedPokemonToRevive()
BattleAIBase
getFaintedPokemonToRevive
in class BattleAIBase