|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmechanics.statuses.StatusEffect
mechanics.statuses.ChargeEffect
public class ChargeEffect
| 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 | |
|---|---|
ChargeEffect(int turns,
java.lang.String msg,
MoveListEntry move)
Initialise a new charge effect. |
|
| 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 |
deactivates(Pokemon p)
Charge prevents the pokemon from choosing a move. |
java.lang.String |
getDescription()
Get a description of this status effect. |
MoveListEntry |
getMove()
Return the move that will be used after the charge finishes. |
java.lang.String |
getName()
Get the name of this status effect. |
int |
getTier()
Remove the tier of the after-turn effect. |
MoveListEntry |
getTransformedMove(Pokemon p,
MoveListEntry entry)
|
boolean |
immobilises(Pokemon p)
Return whether this effect immobilises the pokemon. |
boolean |
isMoveTransformer(boolean enemy)
Returns true if this status effect is capable of transforming moves. |
void |
setTurns(int turns)
|
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. |
void |
unapply(Pokemon p)
Unapply this status effect. |
| Methods inherited from class mechanics.statuses.StatusEffect |
|---|
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, 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 |
|---|
public ChargeEffect(int turns,
java.lang.String msg,
MoveListEntry move)
turns - the number of turns to charge formsg - message to display when effect is appliedmove - move to use after charge is complete| Method Detail |
|---|
public java.lang.String getName()
StatusEffect
getName in class StatusEffectpublic void setTurns(int turns)
public boolean isMoveTransformer(boolean enemy)
StatusEffect
isMoveTransformer in class StatusEffectenemy - whether this is an enemy move
public MoveListEntry getTransformedMove(Pokemon p,
MoveListEntry entry)
getTransformedMove in class StatusEffectpublic boolean apply(Pokemon p)
StatusEffect
apply in class StatusEffectpublic void unapply(Pokemon p)
StatusEffect
unapply in class StatusEffectpublic boolean deactivates(Pokemon p)
deactivates in class StatusEffectpublic boolean switchOut(Pokemon p)
StatusEffect
switchOut in class StatusEffectpublic int getTier()
StatusEffect
getTier in class StatusEffectpublic boolean tick(Pokemon p)
StatusEffect
tick in class StatusEffectpublic java.lang.String getDescription()
StatusEffect
getDescription in class StatusEffectpublic MoveListEntry getMove()
public boolean immobilises(Pokemon p)
StatusEffect
immobilises in class StatusEffect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||