|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.statuses.StatusEffect
mechanics.statuses.field.FieldEffect
public abstract class FieldEffect
This class represents a StatusEffect that is applied to a whole battle field, rather than a single pokemon.
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 | |
---|---|
FieldEffect()
|
Method Summary | |
---|---|
abstract boolean |
applyToField(BattleField field)
Apply this effect to a field. |
void |
beginTick()
Prepare this effect for ticking. |
java.lang.Object |
clone()
Returns this object, rather than making a clone. |
FieldEffect |
getFieldCopy()
Allow for functional cloning when applying this effect to a field. |
boolean |
switchOut(Pokemon poke)
Generally a FieldEffect is said to be healed when a pokemon is switched out because it will be reapplied when the pokemon returns. |
boolean |
tick(Pokemon poke)
Tick the effect on its associated field. |
protected abstract boolean |
tickField(BattleField field)
Tick the effect on the whole field. |
protected boolean |
tickPokemon(Pokemon poke)
Tick the effect on a pokemon. |
void |
unapplyToField(BattleField field)
Remove this effect from a field. |
Methods inherited from class mechanics.statuses.StatusEffect |
---|
activate, apply, apply, canSwitch, canSwitch, deactivate, deactivates, disable, equals, executeTurn, getDescription, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getName, getTier, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, immobilises, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, isSingleton, setInducer, switchIn, unapply, vetoesMove |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldEffect()
Method Detail |
---|
public boolean switchOut(Pokemon poke)
switchOut
in class StatusEffect
public final java.lang.Object clone()
clone
in class StatusEffect
public FieldEffect getFieldCopy()
public final boolean tick(Pokemon poke)
tick
in class StatusEffect
protected boolean tickPokemon(Pokemon poke)
protected abstract boolean tickField(BattleField field)
public abstract boolean applyToField(BattleField field)
public void unapplyToField(BattleField field)
public void beginTick()
beginTick
in class StatusEffect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |