mechanics.moves
Class MoveList.AttractEffect

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

public static class MoveList.AttractEffect
extends StatusEffect


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.AttractEffect()
           
 
Method Summary
 boolean apply(Pokemon p)
          Applies the initial effects of the status to a pokemon but does not add the status to the list of statuses the pokemon has.
 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 hitsThroughSubstitute()
          Return whether this status effect can apply statuses through a substitute.
 boolean immobilises(Pokemon p)
          Return whether this effect immobilises the pokemon.
 boolean isPassable()
          Can this status effect by baton passed? (Almost all can.)
 boolean tick(Pokemon p)
          Called each turn that this status effect is applied to a pokemon.
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, equals, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isRemovable, isSingleton, setInducer, switchIn, switchOut, unapply, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveList.AttractEffect

public MoveList.AttractEffect()
Method Detail

getName

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

Overrides:
getName in class StatusEffect

isPassable

public boolean isPassable()
Description copied from class: StatusEffect
Can this status effect by baton passed? (Almost all can.)

Overrides:
isPassable in class StatusEffect

hitsThroughSubstitute

public boolean hitsThroughSubstitute()
Description copied from class: StatusEffect
Return whether this status effect can apply statuses through a substitute.

Overrides:
hitsThroughSubstitute 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

getTier

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

Overrides:
getTier in class StatusEffect

tick

public boolean tick(Pokemon p)
Description copied from class: StatusEffect
Called each turn that this status effect is applied to a pokemon. Returns whether the status was removed.

Overrides:
tick in class StatusEffect

apply

public boolean apply(Pokemon p)
Description copied from class: StatusEffect
Applies the initial effects of the status to a pokemon but does not add the status to the list of statuses the pokemon has.

Overrides:
apply in class StatusEffect

immobilises

public boolean immobilises(Pokemon p)
Description copied from class: StatusEffect
Return whether this effect immobilises the pokemon.

Overrides:
immobilises in class StatusEffect