Class AttackAction
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.log.action.BattleAction
com.pixelmonmod.pixelmon.battles.controller.log.action.PokemonRelatedBattleAction
com.pixelmonmod.pixelmon.battles.controller.log.action.type.AttackAction
A logged move in battle.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Attack
protected final MoveResults[]
protected final String
protected final String
protected final String[]
protected final boolean
Fields inherited from class com.pixelmonmod.pixelmon.battles.controller.log.action.PokemonRelatedBattleAction
pokemon
Fields inherited from class com.pixelmonmod.pixelmon.battles.controller.log.action.BattleAction
turn
-
Constructor Summary
ConstructorDescriptionAttackAction
(int turn, PixelmonWrapper pokemon, Attack attack, PixelmonWrapper[] targets, MoveResults[] moveResults) Logs a move in battle. -
Method Summary
Modifier and TypeMethodDescriptionboolean
appendLog
(StringBuilder builder) protected boolean
isWildPokemon
(BattleParticipant participant) Methods inherited from class com.pixelmonmod.pixelmon.battles.controller.log.action.PokemonRelatedBattleAction
getParticipant, getPokemon, isWildPokemon
-
Field Details
-
pokemonName
-
participantName
-
wildPokemon
protected final boolean wildPokemon -
attack
-
targets
-
moveResults
-
-
Constructor Details
-
AttackAction
public AttackAction(int turn, PixelmonWrapper pokemon, Attack attack, PixelmonWrapper[] targets, MoveResults[] moveResults) Logs a move in battle.- Parameters:
turn
- The turn the move was used on.pokemon
- The Pokémon who used the move.attack
- The move used, or null.targets
-moveResults
- The results of the move.
-
-
Method Details
-
appendLog
- Specified by:
appendLog
in classBattleAction
-
getMoveResults
-
isWildPokemon
-