Class FlipsMultiplyEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffect
com.pixelmonmod.tcg.duel.attack.effects.FlipsMultiplyEffect
Created by Hy on 6/25/2016.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBeforeDamage
(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 neededMethods inherited from class com.pixelmonmod.tcg.duel.attack.effects.BaseAttackEffect
applyAfterDamage, applyDelayAfterDamage, canApply, chooseOppAttack, construct, getCodes, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyDamage, modifyTurn, setOptional, setRequiredCoinSide, withConstructor
-
Field Details
-
counter
public int counter
-
-
Constructor Details
-
FlipsMultiplyEffect
public FlipsMultiplyEffect()
-
-
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 void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classBaseAttackEffect
-
parse
- Overrides:
parse
in classBaseAttackEffect
-