public abstract class MultiTurnSpecialAttackBase extends EffectBase
modifiers
Constructor and Description |
---|
MultiTurnSpecialAttackBase()
Initializes the multi-turn effect.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
AttackResult |
applyEffectDuring(PixelmonWrapper user,
PixelmonWrapper target)
Triggers before the move hits the target.
|
void |
applyMissEffect(PixelmonWrapper user,
PixelmonWrapper target)
Triggers when the move misses.
|
boolean |
cantMiss(PixelmonWrapper user)
Determines whether a move cannot miss.
|
void |
decrementTurnCount(PixelmonWrapper user)
Decrements the move's turn count by 1.
|
boolean |
doesPersist(PixelmonWrapper user)
Returns whether the move lasts multiple turns.
|
int |
getTurnCount(PixelmonWrapper user)
Gets the turn count for the user's multi-turn move.
|
boolean |
ignoresType(PixelmonWrapper user)
Returns whether the move ignores type immunities.
|
boolean |
isCharging(PixelmonWrapper user,
PixelmonWrapper target)
Returns whether the multi-turn move is in a charging turn.
|
void |
removeEffect(PixelmonWrapper user,
PixelmonWrapper target)
Ends the multi-turn move.
|
protected void |
setPersists(PixelmonWrapper user,
boolean value)
Sets whether the move will continue next turn.
|
void |
setTurnCount(PixelmonWrapper user,
int value)
Sets the move's turn count.
|
boolean |
shouldNotLosePP(PixelmonWrapper user)
Returns whether the move should not have PP deducted during the turn.
|
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, changeChance, checkChance, dealtDamage, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness, weightEffect
public MultiTurnSpecialAttackBase()
public int getTurnCount(PixelmonWrapper user)
user
- The move's user.public void decrementTurnCount(PixelmonWrapper user)
user
- The move's user.public void setTurnCount(PixelmonWrapper user, int value)
user
- The move's user.value
- The new turn count.public boolean doesPersist(PixelmonWrapper user)
EffectBase
doesPersist
in class EffectBase
user
- The move's user.protected void setPersists(PixelmonWrapper user, boolean value)
user
- The move's user.value
- Whether the move will continue next turn.public AttackResult applyEffectDuring(PixelmonWrapper user, PixelmonWrapper target)
user
- The move's user.target
- The move's target.java.lang.Exception
public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyEffect
in class EffectBase
user
- The move's user.target
- The move's target.public boolean cantMiss(PixelmonWrapper user)
EffectBase
cantMiss
in class EffectBase
user
- The move's user.public void applyMissEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyMissEffect
in class EffectBase
user
- The move's user.target
- The move's target.public boolean ignoresType(PixelmonWrapper user)
user
- The move's userpublic void removeEffect(PixelmonWrapper user, PixelmonWrapper target)
user
- The move's usertarget
- The move's targetpublic boolean isCharging(PixelmonWrapper user, PixelmonWrapper target)
user
- The move's usertarget
- The move's targetpublic boolean shouldNotLosePP(PixelmonWrapper user)
user
- The move's user.