|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.moves.PokemonMove
mechanics.moves.StatusMove
public class StatusMove
Field Summary |
---|
Fields inherited from class mechanics.moves.PokemonMove |
---|
m_accuracy, m_entry, m_power, m_pp, m_type |
Constructor Summary | |
---|---|
StatusMove(PokemonType type,
int power,
double accuracy,
int pp,
StatusEffect[] statuses,
boolean[] attacker,
double[] chances)
Creates a new instance of StatusMove |
Method Summary | |
---|---|
boolean |
attemptHit(BattleMechanics mech,
Pokemon user,
Pokemon target)
Attempt a hit. |
java.lang.Object |
clone()
Clone this move. |
StatusEffect[] |
getEffects()
|
boolean |
isAttack()
Returns whether this move is an attack. |
boolean |
isBuggy()
Return whether this move is buggy. |
boolean |
isDamaging()
Return whether this move deals damage. |
boolean |
isEffective(Pokemon target)
Return whether this status effect can be successfully applied. |
void |
setAttacker(int idx,
boolean attacker)
Sets if a an effect affects the attacker. |
int |
use(BattleMechanics mech,
Pokemon user,
Pokemon target)
The rules for whether this move can hit are elaborate. |
Methods inherited from class mechanics.moves.PokemonMove |
---|
beginTurn, canCriticalHit, getAccuracy, getEffectiveness, getEffectiveness, getMoveListEntry, getPower, getPp, getPriority, getStatusException, getType, hasHighCriticalHitRate, isSpecial, setAccuracy, setPower, setType, switchIn |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusMove(PokemonType type, int power, double accuracy, int pp, StatusEffect[] statuses, boolean[] attacker, double[] chances)
Method Detail |
---|
public boolean attemptHit(BattleMechanics mech, Pokemon user, Pokemon target)
attemptHit
in class PokemonMove
public java.lang.Object clone()
PokemonMove
clone
in class PokemonMove
public StatusEffect[] getEffects()
public boolean isAttack()
PokemonMove
isAttack
in class PokemonMove
public boolean isDamaging()
PokemonMove
isDamaging
in class PokemonMove
public boolean isBuggy()
PokemonMove
isBuggy
in class PokemonMove
public void setAttacker(int idx, boolean attacker)
public boolean isEffective(Pokemon target)
public int use(BattleMechanics mech, Pokemon user, Pokemon target)
use
in class PokemonMove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |