Class RaidAI
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase
com.pixelmonmod.pixelmon.battles.controller.ai.type.AggressiveAI
com.pixelmonmod.pixelmon.battles.controller.ai.type.TacticalAI
com.pixelmonmod.pixelmon.battles.controller.ai.type.RaidAI
- All Implemented Interfaces:
BattleAILogic
Uses both offensive and status moves, using the raid governor as the source of moves.
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase
codec, type -
Constructor Summary
ConstructorsConstructorDescriptionRaidAI()RaidAI(com.mojang.serialization.MapCodec<? extends BattleAIBase> codec, BattleAIType<?> type) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<MoveChoice> Gets all attack choices the AI can make during the turn.getTopNAttackChoices(int count, PixelmonWrapper pw) protected booleanprotected List<MoveChoice> pickTopNBestChoices(int count, List<MoveChoice> choices, List<MoveChoice> bestChoices, BattleController bc) Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.type.TacticalAI
getBestChoices, getBestChoices, getNextMove, getWeightedAttackChoices, pickBestChoice, pickBestChoice, registerMove, simulateStatusMoveMethods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.type.AggressiveAI
getFaintedPokemonToRevive, getNextMoveAttackOnly, getNextSwitch, resetSwitchSimulation, validateSwitchMethods inherited from class com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase
codec, getAttackChoicesOpponentOnly, getBestAttackChoices, getChoices, getMemory, getMoveset, getPossibleReviveIDs, getRandomAttackChoice, getSwitchChoices, getWeightedOffensiveChoices, type, weightFromOpponentOptions, weightFromUserOptions, weightOffensiveMove, weightOffensiveMove, weightOffensiveMoves, weightRandomMove, weightSingleTypeChange, weightStatusOpponentOptions, weightTypeChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.battles.controller.ai.BattleAILogic
getBestAttackChoices, registerSwitch, weightFromOpponentOptions, weightFromUserOptions, weightTypeChange
-
Field Details
-
CODEC
-
-
Constructor Details
-
RaidAI
public RaidAI() -
RaidAI
public RaidAI(com.mojang.serialization.MapCodec<? extends BattleAIBase> codec, BattleAIType<?> type)
-
-
Method Details
-
getAttackChoices
Description copied from class:BattleAIBaseGets all attack choices the AI can make during the turn.- Overrides:
getAttackChoicesin classBattleAIBase- Parameters:
pw- The Pokémon to get choices for.- Returns:
- A list of all attack choices that the AI can make during the turn.
-
getTopNAttackChoices
-
isProtect
-
pickTopNBestChoices
protected List<MoveChoice> pickTopNBestChoices(int count, List<MoveChoice> choices, List<MoveChoice> bestChoices, BattleController bc)
-