mechanics.statuses.abilities
Class OpponentEffectAbility

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.abilities.IntrinsicAbility
          extended by mechanics.statuses.abilities.OpponentEffectAbility
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
TrappingAbility

public abstract class OpponentEffectAbility
extends IntrinsicAbility


Field Summary
 
Fields inherited from class mechanics.statuses.abilities.IntrinsicAbility
m_map
 
Fields inherited from class mechanics.statuses.StatusEffect
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK
 
Constructor Summary
OpponentEffectAbility(java.lang.String name)
          Creates a new instance of TrappingAbility
 
Method Summary
protected abstract  void applyToOpponent(Pokemon owner, Pokemon p)
           
 void switchIn(Pokemon owner)
          Called when a pokemon with this status effect switches in.
 boolean switchOut(Pokemon p)
          Called when a pokemon with this status effect switches out.
 void unapply(Pokemon p)
          Unapply this status effect.
 
Methods inherited from class mechanics.statuses.abilities.IntrinsicAbility
apply, compareTo, equals, getDescription, getInstance, getName, getTier, immobilises, isEffectTransferrable, isPhysical, isSwappable, registerAbility, tick
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, isSingleton, setInducer, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpponentEffectAbility

public OpponentEffectAbility(java.lang.String name)
Creates a new instance of TrappingAbility

Method Detail

unapply

public void unapply(Pokemon p)
Description copied from class: StatusEffect
Unapply this status effect.

Overrides:
unapply in class IntrinsicAbility

switchOut

public boolean switchOut(Pokemon p)
Description copied from class: StatusEffect
Called when a pokemon with this status effect switches out. Returns true if the status effect should be removed.

Overrides:
switchOut in class IntrinsicAbility

applyToOpponent

protected abstract void applyToOpponent(Pokemon owner,
                                        Pokemon p)

switchIn

public void switchIn(Pokemon owner)
Description copied from class: StatusEffect
Called when a pokemon with this status effect switches in.

Overrides:
switchIn in class StatusEffect