Class BaseAttackEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffect
- Direct Known Subclasses:
AttachDiscardEffect
,BaseAttackEffectWithOptionalFlip
,ChainLightningEffect
,ChangeResistanceEffect
,ChangeWeaknessEffect
,DamageBonusEffect
,DestinyBondEffect
,DevolveEffect
,DisableAttackEffect
,DreamEaterEffect
,FindPokemonEffect
,FlipsMultiplyEffect
,HardenEffect
,HurricaneEffect
,IgnoreStatsEffect
,LeechSeedEffect
,MetronomeEffect
,MirrorMoveEffect
,ProphecyEffect
,ReduceDamageEffect
,SandAttackEffect
,SearchDiscardEffect
,SearchDiscardWithEnergyCostEffect
,SuperFangEffect
,SwordsDanceEffect
,ThunderstormEffect
,WildfireEffect
Created by Hy on 5/22/2016.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAfterDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) void
applyBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) void
applyDelayAfterDamage
(PokemonCardState pokemon, GameServerState server) boolean
canApply
(List<Object> parameters, CardAttack cardAttack, GameServerState server) boolean
final BaseAttackEffect
flipCoin
(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) This function receives current flipping result and adding more if the effect neededString[]
getCodes()
getCustomGUI
(PokemonCardState pokemon, GameServerState server) getSelectorState
(List<Object> parameters, GameServerState server) boolean
int
modifyDamage
(int damage, PokemonCardState pokemon, GameServerState server) Modify the damage done.void
modifyTurn
(PokemonCardState pokemon, GameServerState server) Modify possible actions that are done during BetweenTurn phasesetOptional
(boolean optional) setRequiredCoinSide
(CoinSide coinSide) withConstructor
(Supplier<? extends BaseAttackEffect> constructor)
-
Constructor Details
-
BaseAttackEffect
-
-
Method Details
-
withConstructor
-
construct
-
canApply
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) -
applyAfterDamage
public void applyAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) -
flipCoin
public List<CoinSide> flipCoin(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) This function receives current flipping result and adding more if the effect needed- Returns:
- true or false
-
getSelectorState
-
getCustomGUI
-
getOpponentSelectorState
-
chooseOppAttack
public boolean chooseOppAttack() -
isOptional
public boolean isOptional() -
modifyDamage
Modify the damage done. Usually an effect of DelayEffect.- Parameters:
damage
-pokemon
-server
-- Returns:
-
modifyTurn
Modify possible actions that are done during BetweenTurn phase- Parameters:
pokemon
-server
-
-
applyDelayAfterDamage
-
getCodes
-
setRequiredCoinSide
-
setOptional
-
parse
-