mechanics.moves
Class MoveList.SpeedSwapEffect

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.field.FieldEffect
          extended by mechanics.moves.MoveList.SpeedSwapEffect
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
MoveList

public static class MoveList.SpeedSwapEffect
extends FieldEffect

An effect that _effectively_ swaps the speeds of the pokemon in play.


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
MoveList.SpeedSwapEffect()
           
 
Method Summary
 boolean applyToField(BattleField field)
          Apply this effect to a field.
 java.lang.String getDescription()
          Get a description of this status effect.
 java.lang.String getName()
          Get the name of this status effect.
 int getTier()
          Remove the tier of the after-turn effect.
 boolean tickField(BattleField field)
          Tick the effect on the whole field.
 void unapplyToField(BattleField field)
          Remove this effect from a field.
 
Methods inherited from class mechanics.statuses.field.FieldEffect
beginTick, clone, getFieldCopy, switchOut, tick, tickPokemon
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, apply, canSwitch, canSwitch, deactivate, deactivates, disable, equals, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, 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

MoveList.SpeedSwapEffect

public MoveList.SpeedSwapEffect()
Method Detail

applyToField

public boolean applyToField(BattleField field)
Description copied from class: FieldEffect
Apply this effect to a field.

Specified by:
applyToField in class FieldEffect

tickField

public boolean tickField(BattleField field)
Description copied from class: FieldEffect
Tick the effect on the whole field.

Specified by:
tickField in class FieldEffect
Returns:
whether the effect was removed

unapplyToField

public void unapplyToField(BattleField field)
Description copied from class: FieldEffect
Remove this effect from a field.

Overrides:
unapplyToField in class FieldEffect

getTier

public int getTier()
Description copied from class: StatusEffect
Remove the tier of the after-turn effect.

Overrides:
getTier in class StatusEffect

getDescription

public java.lang.String getDescription()
Description copied from class: StatusEffect
Get a description of this status effect.

Overrides:
getDescription in class StatusEffect

getName

public java.lang.String getName()
Description copied from class: StatusEffect
Get the name of this status effect.

Overrides:
getName in class StatusEffect