mechanics.moves
Class MoveList.CoEffect
java.lang.Object
mechanics.statuses.StatusEffect
mechanics.moves.MoveList.CoEffect
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- MoveList
public static class MoveList.CoEffect
- extends StatusEffect
Method Summary |
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. |
java.lang.Class |
getType()
|
boolean |
switchOut(Pokemon p)
Called when a pokemon with this status effect switches out. |
boolean |
tick(Pokemon p)
Called each turn that this status effect is applied to a pokemon. |
Methods inherited from class mechanics.statuses.StatusEffect |
activate, apply, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, equals, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, immobilises, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, isSingleton, setInducer, switchIn, unapply, vetoesMove |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveList.CoEffect
public MoveList.CoEffect(java.lang.Class type)
getType
public java.lang.Class getType()
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
getTier
public int getTier()
- Description copied from class:
StatusEffect
- Remove the tier of the after-turn effect.
- Overrides:
getTier
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
switchOut
public boolean switchOut(Pokemon p)
- Description copied from class:
StatusEffect
- Called when a pokemon with this status effect switches out.
Returns true if the status effect should be removed.
- Overrides:
switchOut
in class StatusEffect