public abstract class BaseAttackEffectWithOptionalFlip extends BaseAttackEffect
Modifier and Type | Field and Description |
---|---|
protected CoinSide |
needCoinSide |
Constructor and Description |
---|
BaseAttackEffectWithOptionalFlip(java.lang.String... name) |
Modifier and Type | Method and Description |
---|---|
void |
applyAfterDamage(java.util.List<java.lang.Object> parameters,
PokemonAttackStatus attack,
PokemonCardState card,
GameServerState server,
int finalDamage) |
void |
applyBeforeDamage(java.util.List<java.lang.Object> parameters,
PokemonAttackStatus attack,
PokemonCardState card,
GameServerState server) |
void |
applyOnCorrectCoinSideAfterDamage(java.util.List<java.lang.Object> parameters,
PokemonAttackStatus attack,
PokemonCardState card,
GameServerState server) |
void |
applyOnCorrectCoinSideBeforeDamage(java.util.List<java.lang.Object> parameters,
PokemonAttackStatus attack,
PokemonCardState card,
GameServerState server) |
java.util.List<CoinSide> |
flipCoin(java.util.List<CoinSide> currentResult,
PokemonCardState pokemon,
GameServerState server)
This function receives current flipping result and adding more if the effect needed
|
protected boolean |
isCorrectCoinSide(GameServerState server) |
BaseAttackEffect |
setRequiredCoinSide(CoinSide coinSide) |
applyDelayAfterDamage, canApply, chooseOppAttack, construct, getCodes, getCustomGUI, getOpponentSelectorState, getSelectorState, isOptional, modifyDamage, modifyTurn, parse, setOptional, withConstructor
protected CoinSide needCoinSide
public BaseAttackEffectWithOptionalFlip(java.lang.String... name)
public java.util.List<CoinSide> flipCoin(java.util.List<CoinSide> currentResult, PokemonCardState pokemon, GameServerState server)
BaseAttackEffect
flipCoin
in class BaseAttackEffect
public final void applyBeforeDamage(java.util.List<java.lang.Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server)
applyBeforeDamage
in class BaseAttackEffect
public void applyAfterDamage(java.util.List<java.lang.Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server, int finalDamage)
applyAfterDamage
in class BaseAttackEffect
public void applyOnCorrectCoinSideBeforeDamage(java.util.List<java.lang.Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server)
public void applyOnCorrectCoinSideAfterDamage(java.util.List<java.lang.Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server)
protected boolean isCorrectCoinSide(GameServerState server)
public BaseAttackEffect setRequiredCoinSide(CoinSide coinSide)
setRequiredCoinSide
in class BaseAttackEffect