public abstract class Sport extends GlobalStatusBase
| Modifier and Type | Field and Description |
|---|---|
protected Element |
affectedType
The type of move reduced by this status.
|
protected PixelmonWrapper |
user
The user of the move.
|
typemodifiers| Constructor and Description |
|---|
Sport(PixelmonWrapper user,
StatusType status,
Element affectedType,
java.lang.String moveName)
Initializes the status.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
void |
applyRepeatedEffect(GlobalStatusController gsc)
Triggers at the end of every turn.
|
protected abstract Sport |
getNewInstance(PixelmonWrapper user)
Gets a new instance of the subclass.
|
int[] |
modifyPowerAndAccuracyTarget(int power,
int accuracy,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a)
Modifies the power and accuracy of the attack about to hit the statused Pokémon.
|
void |
weightEffect(PixelmonWrapper pw,
MoveChoice userChoice,
java.util.List<MoveChoice> userChoices,
java.util.List<MoveChoice> bestUserChoices,
java.util.List<MoveChoice> opponentChoices,
java.util.List<MoveChoice> bestOpponentChoices)
Determines a weight for the move that has this effect.
|
ignoreWeather, isTerrain, isWeatherallowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectivenessprotected transient PixelmonWrapper user
protected Element affectedType
public Sport(PixelmonWrapper user, StatusType status, Element affectedType, java.lang.String moveName)
user - The user of the move.status - The status's type.affectedType - The type of move reduced by this status.public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBaseapplyEffect in class StatusBaseuser - The move's user.target - The move's target.protected abstract Sport getNewInstance(PixelmonWrapper user)
user - The user of the move.public int[] modifyPowerAndAccuracyTarget(int power,
int accuracy,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a)
StatusBasemodifyPowerAndAccuracyTarget in class StatusBasepower - The attack's power.accuracy - The attack's accuracy.user - The attack's user.target - The attack's target.a - The attack.public void applyRepeatedEffect(GlobalStatusController gsc)
GlobalStatusBaseapplyRepeatedEffect in class GlobalStatusBasegsc - The battle's global status controller.public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBaseweightEffect in class EffectBasepw - The Pokémon using the move.userChoice - The move with this effect.userChoices - All choices the Pokémon has for the turn.bestUserChoices - The best offensive choices the Pokémon has for the turn.opponentChoices - All choices the opponent has for the turn.bestOpponentChoices - The best choices the opponent has for the turn.