Package com.pixelmonmod.tcg.duel.trainer
Class Gambler
java.lang.Object
com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffect
com.pixelmonmod.tcg.duel.trainer.Gambler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(TrainerCardState trainer, GameServerState server) This function applies the effect of the Trainer card.voidapplySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) This function skips the selector, taking what it was placed on as the parameter.booleancanApply(TrainerCardState trainer, GameServerState server) This function makes sure all selector result are ready.booleancanPlay(GameClientState client) This is check on client to make sure the condition on trainer card are met.booleanThis function is to tell if this trainer can skip the selector stage.flipCoin()This function returns all necessary coin flip results.Methods inherited from class com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffect
canPlaceOn, canPlay, getId, getOpponentRevealingSelectorState, getSelectorState, handleEndTurn, modifyDamage, preventDiscard, showDiscardButton
-
Constructor Details
-
Gambler
public Gambler()
-
-
Method Details
-
canPlay
Description copied from class:BaseTrainerEffectThis is check on client to make sure the condition on trainer card are met.- Overrides:
canPlayin classBaseTrainerEffect- Returns:
-
canApply
Description copied from class:BaseTrainerEffectThis function makes sure all selector result are ready.- Overrides:
canApplyin classBaseTrainerEffect- Returns:
-
flipCoin
Description copied from class:BaseTrainerEffectThis function returns all necessary coin flip results.- Overrides:
flipCoinin classBaseTrainerEffect- Returns:
- List of CoinSide
-
apply
Description copied from class:BaseTrainerEffectThis function applies the effect of the Trainer card.- Overrides:
applyin classBaseTrainerEffect
-
canSkipSelector
public boolean canSkipSelector()Description copied from class:BaseTrainerEffectThis function is to tell if this trainer can skip the selector stage.- Overrides:
canSkipSelectorin classBaseTrainerEffect
-
applySkipSelector
public void applySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) Description copied from class:BaseTrainerEffectThis function skips the selector, taking what it was placed on as the parameter.- Overrides:
applySkipSelectorin classBaseTrainerEffect
-