public class AttackAction extends PokemonRelatedBattleAction
| Modifier and Type | Field and Description |
|---|---|
protected Attack |
attack |
protected MoveResults[] |
moveResults |
protected java.lang.String |
participantName |
protected java.lang.String |
pokemonName |
protected java.lang.String[] |
targets |
protected boolean |
wildPokemon |
pokemonturn| Constructor and Description |
|---|
AttackAction(int turn,
PixelmonWrapper pokemon,
Attack attack,
PixelmonWrapper[] targets,
MoveResults[] moveResults)
Logs a move in battle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appendLog(java.lang.StringBuilder builder) |
MoveResults[] |
getMoveResults() |
protected boolean |
isWildPokemon(BattleParticipant participant) |
getParticipant, getPokemon, isWildPokemonprotected final java.lang.String pokemonName
protected final java.lang.String participantName
protected final boolean wildPokemon
protected final Attack attack
protected final java.lang.String[] targets
protected final MoveResults[] moveResults
public AttackAction(int turn,
PixelmonWrapper pokemon,
Attack attack,
PixelmonWrapper[] targets,
MoveResults[] moveResults)
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.public boolean appendLog(java.lang.StringBuilder builder)
appendLog in class BattleActionpublic MoveResults[] getMoveResults()
protected boolean isWildPokemon(BattleParticipant participant)