mechanics.statuses
Class FreezeEffect

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.FreezeEffect
All Implemented Interfaces:
java.lang.Cloneable

public class FreezeEffect
extends StatusEffect

TODO: Account for fire moves thawing out pokemon.


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
FreezeEffect()
           
 
Method Summary
 boolean apply(Pokemon p)
          Ice pokemon cannot be frozen.
 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.
 boolean immobilises(Pokemon poke)
          Freeze immolilises the pokemon.
 void informDamaged(Pokemon source, Pokemon target, MoveListEntry entry, int damage)
          React to damage.
 boolean isListener()
          Return whether this effect listens for damage.
 boolean switchOut(Pokemon p)
          A frozen pokemon is not cured by being switched out.
 boolean tick(Pokemon p)
          Called each turn that this status effect is applied to a pokemon.
 void unapply(Pokemon p)
          Unapply this status effect.
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, equals, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isMoveTransformer, isPassable, isRemovable, isSingleton, setInducer, switchIn, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreezeEffect

public FreezeEffect()
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

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

getTier

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

Overrides:
getTier in class StatusEffect

switchOut

public boolean switchOut(Pokemon p)
A frozen pokemon is not cured by being switched out.

Overrides:
switchOut in class StatusEffect

apply

public boolean apply(Pokemon p)
Ice pokemon cannot be frozen.

Overrides:
apply in class StatusEffect

unapply

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

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

isListener

public boolean isListener()
Description copied from class: StatusEffect
Return whether this effect listens for damage.

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

informDamaged

public void informDamaged(Pokemon source,
                          Pokemon target,
                          MoveListEntry entry,
                          int damage)
Description copied from class: StatusEffect
React to damage.

Overrides:
informDamaged in class StatusEffect

immobilises

public boolean immobilises(Pokemon poke)
Freeze immolilises the pokemon.

Overrides:
immobilises in class StatusEffect