mechanics.statuses
Class ToxicEffect

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

public class ToxicEffect
extends PoisonEffect


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
ToxicEffect()
          Creates a new instance of ToxicEffect
 
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.
 int getTier()
          Toxic is in the fourth tier.
 boolean immobilises(Pokemon poke)
          Poison does not immobilise.
 boolean switchOut(Pokemon p)
          Poison stays through switching out.
 boolean tick(Pokemon p)
          Toxic removes 1/16, 2/16, 3/16, etc.
 void unapply(Pokemon p)
          Unapply this status effect.
 
Methods inherited from class mechanics.statuses.PoisonEffect
getName
 
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, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, 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

ToxicEffect

public ToxicEffect()
Creates a new instance of ToxicEffect

Method Detail

switchOut

public boolean switchOut(Pokemon p)
Poison stays through switching out.

Overrides:
switchOut in class PoisonEffect

tick

public boolean tick(Pokemon p)
Toxic removes 1/16, 2/16, 3/16, etc. max health each round up to a maximum of 8/16.

Overrides:
tick in class PoisonEffect

getTier

public int getTier()
Toxic is in the fourth tier.

Overrides:
getTier in class PoisonEffect

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 PoisonEffect

unapply

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

Overrides:
unapply in class PoisonEffect

getDescription

public java.lang.String getDescription()
Description copied from class: StatusEffect
Get a description of this status effect.

Overrides:
getDescription in class PoisonEffect

immobilises

public boolean immobilises(Pokemon poke)
Poison does not immobilise.

Overrides:
immobilises in class PoisonEffect