public class Confusion extends StatusBase
typemodifiers| Constructor and Description | 
|---|
| Confusion()Initializes confusion and randomly chooses a duration for it. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | addStatus(PixelmonWrapper user,
         PixelmonWrapper target) | 
| void | applyEffect(PixelmonWrapper user,
           PixelmonWrapper target)Causes various effects during the move. | 
| boolean | canAttackThisTurn(PixelmonWrapper user,
                 Attack a)Determines whether the statused Pokémon can attack. | 
| static boolean | confuse(PixelmonWrapper user,
       PixelmonWrapper target)Confuses the target if possible. | 
| java.lang.String | getCureMessage()Gets the lang key for the message that is displayed when the status is cured. | 
| java.lang.String | getCureMessageItem()Gets the lang key for the message that is displayed when the status is cured with a held item. | 
| void | weightEffect(PixelmonWrapper pw,
            MoveChoice userChoice,
            java.util.List<MoveChoice> userChoices,
            java.util.List<MoveChoice> bestUserChoices,
            java.util.List<MoveChoice> opponentChoices,
            java.util.List<MoveChoice> bestOpponentChoices)Determines a weight for the move that has this effect. | 
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, cantMiss, copy, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectivenesspublic Confusion()
public static boolean confuse(PixelmonWrapper user, PixelmonWrapper target)
user - The Pokémon causing the confusion.target - The Pokémon to confuse.public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBaseapplyEffect in class StatusBaseuser - The move's user.target - The move's target.protected boolean addStatus(PixelmonWrapper user, PixelmonWrapper target)
public boolean canAttackThisTurn(PixelmonWrapper user, Attack a)
StatusBasecanAttackThisTurn in class StatusBaseuser - The statused Pokémon.a - The attack to be used by the Pokémon.public java.lang.String getCureMessage()
StatusBasegetCureMessage in class StatusBasepublic java.lang.String getCureMessageItem()
StatusBasegetCureMessageItem in class StatusBasepublic void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBaseweightEffect in class EffectBasepw - The Pokémon using the move.userChoice - The move with this effect.userChoices - All choices the Pokémon has for the turn.bestUserChoices - The best offensive choices the Pokémon has for the turn.opponentChoices - All choices the opponent has for the turn.bestOpponentChoices - The best choices the opponent has for the turn.