Class BaseAttackEffectWithOptionalFlip
java.lang.Object
com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffect
com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffectWithOptionalFlip
- Direct Known Subclasses:
AcidEffect
,BenchDamageOppSelectEffect
,ConditionEffect
,DamageEffect
,DisableCardEffect
,DiscardAttachmentEffect
,DrawCardEffect
,HealEffect
,ImmuneEffect
,MissedEffect
,SwitchPokemonEffect
Created by Hy on 5/29/2016.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAfterDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) final void
applyBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) void
applyOnCorrectCoinSideAfterDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) void
applyOnCorrectCoinSideBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) flipCoin
(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) This function receives current flipping result and adding more if the effect neededprotected boolean
isCorrectCoinSide
(GameServerState server) setRequiredCoinSide
(CoinSide coinSide) Methods inherited from class com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffect
applyDelayAfterDamage, canApply, chooseOppAttack, construct, getCodes, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyDamage, modifyTurn, parse, setOptional, withConstructor
-
Field Details
-
needCoinSide
-
-
Constructor Details
-
BaseAttackEffectWithOptionalFlip
-
-
Method Details
-
flipCoin
public List<CoinSide> flipCoin(List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server) Description copied from class:BaseAttackEffect
This function receives current flipping result and adding more if the effect needed- Overrides:
flipCoin
in classBaseAttackEffect
- Returns:
- true or false
-
applyBeforeDamage
public final void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classBaseAttackEffect
-
applyAfterDamage
public void applyAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage) - Overrides:
applyAfterDamage
in classBaseAttackEffect
-
applyOnCorrectCoinSideBeforeDamage
public void applyOnCorrectCoinSideBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) -
applyOnCorrectCoinSideAfterDamage
public void applyOnCorrectCoinSideAfterDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) -
isCorrectCoinSide
-
setRequiredCoinSide
- Overrides:
setRequiredCoinSide
in classBaseAttackEffect
-