mechanics.statuses.items
Class ChoiceBandItem

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.abilities.IntrinsicAbility
          extended by mechanics.statuses.items.HoldItem
              extended by mechanics.statuses.items.ChoiceBandItem
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class ChoiceBandItem
extends HoldItem

Choice Band: First attack is used repeatedly, but for 150% damage. Switching resets the choice.


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
ChoiceBandItem(java.lang.String name, boolean special)
           
 
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.
 void beginTick()
          Begin ticking this effect.
 MoveListEntry getTransformedMove(Pokemon p, MoveListEntry entry)
           
 boolean isMoveTransformer(boolean enemy)
          Returns true if this status effect is capable of transforming moves.
 void setChoice(Pokemon p, BattleMechanics mech, MoveListEntry entry)
           
 boolean switchOut(Pokemon p)
          Called when a pokemon with this status effect switches out.
protected  void transformChoice(Pokemon p, BattleMechanics mech, MoveListEntry entry)
           
 boolean vetoesMove(Pokemon p, MoveListEntry entry)
          Returns whether this status effect vetoes the choice of a particular move.
 
Methods inherited from class mechanics.statuses.items.HoldItem
getDefaultData, registerAbility
 
Methods inherited from class mechanics.statuses.abilities.IntrinsicAbility
compareTo, equals, getDescription, getInstance, getName, getTier, immobilises, isEffectTransferrable, isPhysical, isSwappable, tick, unapply
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, canSwitch, canSwitch, clone, deactivate, deactivates, disable, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isPassable, isRemovable, isSingleton, setInducer, switchIn
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceBandItem

public ChoiceBandItem(java.lang.String name,
                      boolean special)
Parameters:
special - whether the boosted moves are special
Method Detail

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 IntrinsicAbility

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

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

isMoveTransformer

public boolean isMoveTransformer(boolean enemy)
Description copied from class: StatusEffect
Returns true if this status effect is capable of transforming moves.

Overrides:
isMoveTransformer in class StatusEffect
Parameters:
enemy - whether this is an enemy move

beginTick

public void beginTick()
Description copied from class: StatusEffect
Begin ticking this effect.

Overrides:
beginTick in class StatusEffect

transformChoice

protected void transformChoice(Pokemon p,
                               BattleMechanics mech,
                               MoveListEntry entry)

setChoice

public void setChoice(Pokemon p,
                      BattleMechanics mech,
                      MoveListEntry entry)

getTransformedMove

public MoveListEntry getTransformedMove(Pokemon p,
                                        MoveListEntry entry)
Overrides:
getTransformedMove in class StatusEffect