mechanics.statuses.field
Class SandstormEffect

java.lang.Object
  extended by mechanics.statuses.StatusEffect
      extended by mechanics.statuses.field.FieldEffect
          extended by mechanics.statuses.field.WeatherEffect
              extended by mechanics.statuses.field.SandstormEffect
All Implemented Interfaces:
java.lang.Cloneable

public class SandstormEffect
extends WeatherEffect

1. Hurts all pokemon with 1/16 HP unless they are Rock/Ground/Steel types or have the ability Sand Veil. 2. Cuts the power of Solarbeam to 60. 3. Makes Weather Ball a power 100 Rock-type move. 4. Increases the current effective evasion of pokemon with the Sand Veil ability. 5. Makes Moonlight and Morning Sun restore 1/4 of the user's max HP.


Field Summary
 
Fields inherited from class mechanics.statuses.field.WeatherEffect
m_applied
 
Fields inherited from class mechanics.statuses.StatusEffect
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK
 
Constructor Summary
SandstormEffect()
           
SandstormEffect(int turns)
          Creates a new instance of SandstormEffect
 
Method Summary
 boolean apply(Pokemon p)
          Increase the evasion of a Pokemon with the Sand Veil ability.
 boolean applyToField(BattleField field)
          Apply this effect to a field.
 java.lang.String getDescription()
          Get a description of this status effect.
 java.lang.String getName()
          Get the name of this status effect.
 MoveListEntry getTransformedMove(Pokemon poke, MoveListEntry entry)
          1.
 boolean immobilises(Pokemon p)
          Return whether this effect immobilises the pokemon.
 boolean tickPokemon(Pokemon p)
          Does 1/16 of a Pokemon's health worth of damage each turn if the Pokemon is not Ground, Rock, or Steel type, or has the sand veil ability.
protected  void tickWeather(BattleField field)
          Tick this effect for the whole field.
 void unapply(Pokemon p)
          Restores the evasion of a Pokemon with Sand Veil when the sandstorm ends.
 void unapplyToField(BattleField field)
          Remove this effect from a field.
 
Methods inherited from class mechanics.statuses.field.WeatherEffect
getTier, hasEffects, isMoveTransformer, setTypes, tickField
 
Methods inherited from class mechanics.statuses.field.FieldEffect
beginTick, clone, getFieldCopy, switchOut, tick
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, canSwitch, canSwitch, deactivate, deactivates, disable, equals, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isPassable, isRemovable, isSingleton, setInducer, switchIn, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SandstormEffect

public SandstormEffect(int turns)
Creates a new instance of SandstormEffect


SandstormEffect

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

immobilises

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

Overrides:
immobilises in class StatusEffect

tickWeather

protected void tickWeather(BattleField field)
Tick this effect for the whole field.

Specified by:
tickWeather in class WeatherEffect

unapplyToField

public void unapplyToField(BattleField field)
Remove this effect from a field.

Overrides:
unapplyToField in class FieldEffect

tickPokemon

public boolean tickPokemon(Pokemon p)
Does 1/16 of a Pokemon's health worth of damage each turn if the Pokemon is not Ground, Rock, or Steel type, or has the sand veil ability.

Overrides:
tickPokemon in class FieldEffect

apply

public boolean apply(Pokemon p)
Increase the evasion of a Pokemon with the Sand Veil ability.

Overrides:
apply in class StatusEffect

unapply

public void unapply(Pokemon p)
Restores the evasion of a Pokemon with Sand Veil when the sandstorm ends.

Overrides:
unapply in class StatusEffect

applyToField

public boolean applyToField(BattleField field)
Apply this effect to a field.

Specified by:
applyToField in class FieldEffect

getTransformedMove

public MoveListEntry getTransformedMove(Pokemon poke,
                                        MoveListEntry entry)
1. Hurts all pokemon with 1/16 HP unless they are Rock/Ground/Steel types or have the ability Sand Veil. 2. Cuts the power of Solarbeam to 60. 3. Makes Weather Ball a power 100 Rock-type move. 4. Increases the current effective evasion of pokemon with the Sand Veil ability. 5. Makes Moonlight and Morning Sun restore 1/4 of the user's max HP.

Overrides:
getTransformedMove in class StatusEffect