public abstract class Screen extends StatusBase
typemodifiers| Constructor and Description |
|---|
Screen(StatusType type,
BattleStatsType stat,
int effectTurns,
java.lang.String langStart,
java.lang.String langFail,
java.lang.String langEnd)
Initializes the screen.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(PixelmonWrapper user,
boolean failureMessages) |
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggered at the end of every turn.
|
StatusBase |
copy()
If necessary, makes a deep copy of the status.
|
float |
getDamageMultiplier(PixelmonWrapper user,
PixelmonWrapper target) |
protected abstract Screen |
getNewInstance(int effectTurns)
Creates a new instance of the subclass.
|
boolean |
ignoreStatus(PixelmonWrapper user,
PixelmonWrapper target)
Determines whether the status is ignored during the attack.
|
boolean |
isTeamStatus()
Determines whether the status applies to the Pokémon's position in the battle.
|
int |
modifyDamageIncludeFixed(int damage,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a,
DamageTypeEnum damageType)
Triggers when the Pokémon takes direct damage, including fixed damage moves.
|
boolean |
shouldReduce(Attack a) |
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.
|
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, isImmune, isWholeTeamStatus, modifyBaseStats, modifyPowerAndAccuracyTarget, 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, modifyTypeEffectivenesspublic Screen(StatusType type, BattleStatsType stat, int effectTurns, java.lang.String langStart, java.lang.String langFail, java.lang.String langEnd)
type - The status's type.stat - The defensive stat that will be raised.effectTurns - The remaining number of turns that the screen will last.langStart - The message to display when the screen is set up.langFail - The message to display when the screen is attempted to be set up when it is already up.langEnd - The message to display when the screen wears off.public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBaseapplyEffect in class StatusBaseuser - The move's user.target - The move's target.public boolean apply(PixelmonWrapper user, boolean failureMessages)
protected abstract Screen getNewInstance(int effectTurns)
effectTurns - The number of turns for the screen to last.public int modifyDamageIncludeFixed(int damage,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a,
DamageTypeEnum damageType)
StatusBasemodifyDamageIncludeFixed in class StatusBasedamage - The amount of damage dealt.user - The attack's user.target - The attack's target.a - The attack.public float getDamageMultiplier(PixelmonWrapper user, PixelmonWrapper target)
public boolean shouldReduce(Attack a)
public boolean ignoreStatus(PixelmonWrapper user, PixelmonWrapper target)
StatusBaseignoreStatus in class StatusBaseuser - The attack's user.target - The attack's target.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBaseapplyRepeatedEffect in class StatusBasepw - The statused Pokémon.public boolean isTeamStatus()
StatusBaseisTeamStatus in class StatusBasepublic StatusBase copy()
StatusBasecopy in class StatusBasepublic 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.