public class Gravity extends GlobalStatusBase
type
modifiers
Constructor and Description |
---|
Gravity()
Initializes Gravity.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
void |
applyEffectOnSwitch(PixelmonWrapper pw)
Triggers when the statused Pokémon switches in.
|
void |
applyRepeatedEffect(GlobalStatusController globalStatusController)
Triggers at the end of every turn.
|
java.util.List<Element> |
getEffectiveTypes(PixelmonWrapper user,
PixelmonWrapper target)
Returns the types that will be used in calculating the Pokémon's attack's type effectiveness.
|
boolean |
stopsIncomingAttack(PixelmonWrapper pokemon,
PixelmonWrapper user)
Determines whether the status stops an attack about to hit the statused Pokémon.
|
void |
stopsIncomingAttackMessage(PixelmonWrapper pokemon,
PixelmonWrapper user)
Displays a battle message when the status stops an attack.
|
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, isWeather
allowsStatChange, applyBeforeEffect, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyEffect
in class StatusBase
user
- The move's user.target
- The move's target.public void applyEffectOnSwitch(PixelmonWrapper pw)
StatusBase
applyEffectOnSwitch
in class StatusBase
pw
- The statused Pokémon.public boolean stopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user)
StatusBase
stopsIncomingAttack
in class StatusBase
pokemon
- The statused Pokémon.user
- The attack's user.public void stopsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user)
StatusBase
stopsIncomingAttackMessage
in class StatusBase
pokemon
- The statused Pokémon.user
- The attack's user.public java.util.List<Element> getEffectiveTypes(PixelmonWrapper user, PixelmonWrapper target)
StatusBase
getEffectiveTypes
in class StatusBase
user
- The attack's user.target
- The attack's target.public void applyRepeatedEffect(GlobalStatusController globalStatusController)
GlobalStatusBase
applyRepeatedEffect
in class GlobalStatusBase
globalStatusController
- 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)
EffectBase
weightEffect
in class EffectBase
pw
- 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.