mechanics.statuses.field
Class SunEffect

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.SunEffect
All Implemented Interfaces:
java.lang.Cloneable

public class SunEffect
extends WeatherEffect

1. Raises the power of Fire moves by 1.5x 2. Cuts the power of Water moves by 1/2. 3. Makes Solarbeam a one-turn move. 4. Cuts the Accuracy of Thunder to 50%. 5. Doubles the current effective Speed of pokemon with the Chlorophyll ability. 6. Makes pokemon with the Forecast ability Fire-type. 7. Makes Weather Ball a power 100 Fire-type move. 8. Makes Moonlight and Morning Sun restore 3/4 of the user's max HP. 9. Does 1/8 damage per turn to Pokemon with the Dry Skin ability. 10. Does 1/8 damage per turn to Pokemon with the Solar Power ability. 11. Raises the special attack of Pokemon with the Solar Power ability by 50%


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
SunEffect()
           
SunEffect(int turns)
          Creates a new instance of SunEffect
 
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 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)
          Tick the effect on a pokemon.
protected  void tickWeather(BattleField field)
          Tick this effect for the whole field.
 void unapply(Pokemon p)
          Unapply this status effect.
 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

SunEffect

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


SunEffect

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

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

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

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

tickPokemon

public boolean tickPokemon(Pokemon p)
Description copied from class: FieldEffect
Tick the effect on a pokemon.

Overrides:
tickPokemon in class FieldEffect

unapplyToField

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

Overrides:
unapplyToField in class FieldEffect

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. Raises the power of Fire moves by 1.5x 2. Cuts the power of Water moves by 1/2. 3. Makes Solarbeam a one-turn move. 4. Cuts the Accuracy of Thunder to 50%. 6. Makes Weather Ball a power 100 Fire-type move. 7. Makes Moonlight and Morning Sun restore 3/4 of the user's max HP.

Overrides:
getTransformedMove in class StatusEffect