|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.statuses.StatusEffect
mechanics.moves.MoveList.FixedAttackEffect
public static class MoveList.FixedAttackEffect
A status that forces the user to continue to use the same move.
Field Summary | |
---|---|
protected int |
m_turns
|
Fields inherited from class mechanics.statuses.StatusEffect |
---|
m_lock, SPECIAL_EFFECT_LOCK, STATE_ACTIVE, STATE_DEACTIVATED, STATE_REMOVABLE, WEATHER_EFFECT_LOCK |
Constructor Summary | |
---|---|
MoveList.FixedAttackEffect(java.lang.String name,
java.lang.String description,
java.lang.String message)
|
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 |
canSwitch(Pokemon p)
Return whether this status effect allows switching. |
void |
executeTurn(Pokemon p,
BattleTurn turn)
This method is called when the pokemon to whom the status effect is applied is just about to execute his turn. |
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. |
void |
informDuplicateEffect(Pokemon p)
Inform that this effect was applied, unsuccessfully, a second time. |
boolean |
isSingleton()
Determine whether this effect is a singleton -- i.e., whether only a single copy of it can be present on a pokemon. |
boolean |
tick(Pokemon p)
Called each turn that this status effect is applied to a pokemon. |
boolean |
vetoesMove(Pokemon p,
MoveListEntry entry)
Returns whether this status effect vetoes the choice of a particular move. |
Methods inherited from class mechanics.statuses.StatusEffect |
---|
activate, apply, beginTick, canSwitch, clone, deactivate, deactivates, disable, equals, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, immobilises, informDamaged, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, setInducer, switchIn, switchOut, unapply |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int m_turns
Constructor Detail |
---|
public MoveList.FixedAttackEffect(java.lang.String name, java.lang.String description, java.lang.String message)
Method Detail |
---|
public java.lang.String getName()
StatusEffect
getName
in class StatusEffect
public java.lang.String getDescription()
StatusEffect
getDescription
in class StatusEffect
public int getTier()
StatusEffect
getTier
in class StatusEffect
public boolean apply(Pokemon p)
StatusEffect
apply
in class StatusEffect
public boolean tick(Pokemon p)
StatusEffect
tick
in class StatusEffect
public boolean canSwitch(Pokemon p)
StatusEffect
canSwitch
in class StatusEffect
public boolean vetoesMove(Pokemon p, MoveListEntry entry)
StatusEffect
vetoesMove
in class StatusEffect
public boolean isSingleton()
StatusEffect
isSingleton
in class StatusEffect
public void informDuplicateEffect(Pokemon p)
StatusEffect
informDuplicateEffect
in class StatusEffect
public void executeTurn(Pokemon p, BattleTurn turn)
StatusEffect
executeTurn
in class StatusEffect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |