|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.statuses.StatusEffect
mechanics.statuses.StatChangeEffect
public class StatChangeEffect
Field Summary |
---|
Fields inherited from class mechanics.statuses.StatusEffect |
---|
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK |
Constructor Summary | |
---|---|
StatChangeEffect(int stat,
boolean raise)
Creates a new instance of StatusEffect |
|
StatChangeEffect(int stat,
boolean raise,
int stages)
|
Method Summary | |
---|---|
boolean |
apply(Pokemon p)
Applies the initial effects of the status to a pokemon but does not add the status to the list of statuses the pokemon has. |
java.lang.String |
getDescription()
Get a description of this status effect. |
java.lang.String |
getName()
Get the name of this status effect. |
int |
getStat()
Returns the stat being modified by this effect. |
int |
getTier()
Remove the tier of the after-turn effect. |
boolean |
immobilises(Pokemon poke)
Return whether this effect immobilises the pokemon. |
boolean |
isRaise()
Returns whether this stat represents an increase in a stat. |
boolean |
isSingleton()
There can be more than one version of this effect. |
void |
setDescription(java.lang.String desc)
Set a description. |
boolean |
switchOut(Pokemon p)
Called when a pokemon with this status effect switches out. |
boolean |
tick(Pokemon p)
Called each turn that this status effect is applied to a pokemon. |
void |
unapply(Pokemon p)
Unapply this status effect. |
Methods inherited from class mechanics.statuses.StatusEffect |
---|
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, equals, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, setInducer, switchIn, vetoesMove |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatChangeEffect(int stat, boolean raise, int stages)
public StatChangeEffect(int stat, boolean raise)
Method Detail |
---|
public boolean isSingleton()
isSingleton
in class StatusEffect
public java.lang.String getName()
StatusEffect
getName
in class StatusEffect
public void setDescription(java.lang.String desc)
public boolean immobilises(Pokemon poke)
StatusEffect
immobilises
in class StatusEffect
public java.lang.String getDescription()
getDescription
in class StatusEffect
public boolean tick(Pokemon p)
StatusEffect
tick
in class StatusEffect
public int getTier()
StatusEffect
getTier
in class StatusEffect
public boolean switchOut(Pokemon p)
switchOut
in class StatusEffect
public void unapply(Pokemon p)
unapply
in class StatusEffect
public boolean apply(Pokemon p)
apply
in class StatusEffect
public boolean isRaise()
public int getStat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |