mechanics.moves
Class MoveList.FixedAttackEffect

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

public static class MoveList.FixedAttackEffect
extends StatusEffect

A status that forces the user to continue to use the same move.


Field Summary
protected  int m_turns
           
 
Fields inherited from class mechanics.statuses.StatusEffect
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK
 
Constructor Summary
MoveList.FixedAttackEffect(java.lang.String name, java.lang.String description, java.lang.String message)
           
 
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.
 boolean canSwitch(Pokemon p)
          Return whether this status effect allows switching.
 void executeTurn(Pokemon p, BattleTurn turn)
          This method is called when the pokemon to whom the status effect is applied is just about to execute his turn.
 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.
 void informDuplicateEffect(Pokemon p)
          Inform that this effect was applied, unsuccessfully, a second time.
 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 tick(Pokemon p)
          Called each turn that this status effect is applied to a pokemon.
 boolean vetoesMove(Pokemon p, MoveListEntry entry)
          Returns whether this status effect vetoes the choice of a particular move.
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, beginTick, canSwitch, clone, deactivate, deactivates, disable, equals, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, immobilises, informDamaged, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, setInducer, switchIn, switchOut, unapply
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_turns

protected int m_turns
Constructor Detail

MoveList.FixedAttackEffect

public MoveList.FixedAttackEffect(java.lang.String name,
                                  java.lang.String description,
                                  java.lang.String message)
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

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

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

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

canSwitch

public boolean canSwitch(Pokemon p)
Description copied from class: StatusEffect
Return whether this status effect allows switching.

Overrides:
canSwitch in class StatusEffect

vetoesMove

public boolean vetoesMove(Pokemon p,
                          MoveListEntry entry)
Description copied from class: StatusEffect
Returns whether this status effect vetoes the choice of a particular move.

Overrides:
vetoesMove in class StatusEffect

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

informDuplicateEffect

public void informDuplicateEffect(Pokemon p)
Description copied from class: StatusEffect
Inform that this effect was applied, unsuccessfully, a second time.

Overrides:
informDuplicateEffect in class StatusEffect

executeTurn

public void executeTurn(Pokemon p,
                        BattleTurn turn)
Description copied from class: StatusEffect
This method is called when the pokemon to whom the status effect is applied is just about to execute his turn.

Overrides:
executeTurn in class StatusEffect