mechanics.moves
Class MoveList.PartyEffect

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.field.FieldEffect
          extended by mechanics.moves.MoveList.PartyEffect
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
MoveList.HealBlockEffect, MoveList.LuckyChantEffect, MoveList.MistEffect, MoveList.SafeguardEffect
Enclosing class:
MoveList

public abstract static class MoveList.PartyEffect
extends FieldEffect

An effect that is applied to a team for 5 turns.


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.PartyEffect(java.lang.String start, java.lang.String end)
           
 
Method Summary
 void activateParty(Pokemon p)
           
 boolean applyToField(BattleField field)
          Apply this effect to a field.
 int getTier()
          Remove the tier of the after-turn effect.
 boolean isActive(int party)
           
 boolean isSingleton()
          Determine whether this effect is a singleton -- i.e., whether only a single copy of it can be present on a pokemon.
 boolean tickField(BattleField field)
          Tick the effect on the whole field.
 
Methods inherited from class mechanics.statuses.field.FieldEffect
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, isMoveTransformer, isPassable, isRemovable, setInducer, switchIn, unapply, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveList.PartyEffect

public MoveList.PartyEffect(java.lang.String start,
                            java.lang.String end)
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

getTier

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

Overrides:
getTier in class StatusEffect

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

isSingleton

public boolean isSingleton()
Description copied from class: StatusEffect
Determine whether this effect is a singleton -- i.e., whether only a single copy of it can be present on a pokemon.

Overrides:
isSingleton in class StatusEffect

activateParty

public void activateParty(Pokemon p)

isActive

public boolean isActive(int party)