|
||||||||||
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
mechanics.statuses.field.WeatherEffect
public abstract class WeatherEffect
Field Summary | |
---|---|
protected boolean[] |
m_applied
|
Fields inherited from class mechanics.statuses.StatusEffect |
---|
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK |
Constructor Summary | |
---|---|
WeatherEffect(int turns)
Initialise the number of turns that this effect will remain active for before it fades. |
Method Summary | |
---|---|
int |
getTier()
Weather effects are currently all in the third tier (zero is the first tier, so returning two is indeed the third tier). |
protected boolean |
hasEffects(BattleField field)
Whether the weather should have effects. |
boolean |
isMoveTransformer(boolean enemy)
Weather effects are move transformers. |
protected void |
setTypes(Pokemon p,
PokemonType[] types,
boolean apply)
Changes the types of a Pokemon (for Forecast). |
protected boolean |
tickField(BattleField field)
Handle the number of turns that this effect will last for. |
protected abstract void |
tickWeather(BattleField field)
Tick the weather on this field. |
Methods inherited from class mechanics.statuses.field.FieldEffect |
---|
applyToField, beginTick, clone, getFieldCopy, switchOut, tick, tickPokemon, unapplyToField |
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, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, immobilises, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isPassable, isRemovable, isSingleton, setInducer, switchIn, unapply, vetoesMove |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean[] m_applied
Constructor Detail |
---|
public WeatherEffect(int turns)
Method Detail |
---|
protected final boolean tickField(BattleField field)
tickField
in class FieldEffect
protected abstract void tickWeather(BattleField field)
public int getTier()
getTier
in class StatusEffect
public boolean isMoveTransformer(boolean enemy)
isMoveTransformer
in class StatusEffect
enemy
- whether this is an enemy moveprotected boolean hasEffects(BattleField field)
protected void setTypes(Pokemon p, PokemonType[] types, boolean apply)
apply
- Whether the types are being applied or unapplied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |