mechanics.statuses.abilities
Class CriticalTypeAbility

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

public class CriticalTypeAbility
extends IntrinsicAbility


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
CriticalTypeAbility(java.lang.String name, PokemonType type)
           
 
Method Summary
 MoveListEntry getTransformedMove(Pokemon p, MoveListEntry entry)
          If a pokemon has 1/3 or less health then CriticalType transforms moves of a certain type by giving them one and a half times the power.
 boolean isMoveTransformer(boolean enemy)
          Returns true if this status effect is capable of transforming moves.
 
Methods inherited from class mechanics.statuses.abilities.IntrinsicAbility
apply, compareTo, equals, getDescription, getInstance, getName, getTier, immobilises, isEffectTransferrable, isPhysical, isSwappable, registerAbility, switchOut, tick, unapply
 
Methods inherited from class mechanics.statuses.StatusEffect
activate, apply, beginTick, 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, vetoesMove
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriticalTypeAbility

public CriticalTypeAbility(java.lang.String name,
                           PokemonType type)
Method Detail

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

getTransformedMove

public MoveListEntry getTransformedMove(Pokemon p,
                                        MoveListEntry entry)
If a pokemon has 1/3 or less health then CriticalType transforms moves of a certain type by giving them one and a half times the power.

Overrides:
getTransformedMove in class StatusEffect