Package com.pixelmonmod.tcg.duel.trainer
Class ClefairyDoll
java.lang.Object
com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffect
com.pixelmonmod.tcg.duel.trainer.ClefairyDoll
Created by Hy on 5/22/2016.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(TrainerCardState trainer, GameServerState server) This function applies the effect of the Trainer card.void
applySkipSelector
(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) This function skips the selector, taking what it was placed on as the parameter.boolean
canApply
(TrainerCardState trainer, GameServerState server) This function makes sure all selector result are ready.boolean
canPlaceOn
(CardWithLocation card) boolean
canPlay
(GameClientState client) This is check on client to make sure the condition on trainer card are met.boolean
This function is to tell if this trainer can skip the selector stage.boolean
Prevent the battle controller from automatically discard the trainerboolean
For cards that allow manual discard such as Clefari DollMethods inherited from class com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffect
canPlay, flipCoin, getId, getOpponentRevealingSelectorState, getSelectorState, handleEndTurn, modifyDamage
-
Constructor Details
-
ClefairyDoll
public ClefairyDoll()
-
-
Method Details
-
canPlay
Description copied from class:BaseTrainerEffect
This is check on client to make sure the condition on trainer card are met.- Overrides:
canPlay
in classBaseTrainerEffect
- Returns:
-
canApply
Description copied from class:BaseTrainerEffect
This function makes sure all selector result are ready.- Overrides:
canApply
in classBaseTrainerEffect
- Returns:
-
apply
Description copied from class:BaseTrainerEffect
This function applies the effect of the Trainer card.- Overrides:
apply
in classBaseTrainerEffect
-
preventDiscard
public boolean preventDiscard()Description copied from class:BaseTrainerEffect
Prevent the battle controller from automatically discard the trainer- Overrides:
preventDiscard
in classBaseTrainerEffect
- Returns:
-
showDiscardButton
public boolean showDiscardButton()Description copied from class:BaseTrainerEffect
For cards that allow manual discard such as Clefari Doll- Overrides:
showDiscardButton
in classBaseTrainerEffect
- Returns:
-
canPlaceOn
- Overrides:
canPlaceOn
in classBaseTrainerEffect
- Returns:
-
canSkipSelector
public boolean canSkipSelector()Description copied from class:BaseTrainerEffect
This function is to tell if this trainer can skip the selector stage.- Overrides:
canSkipSelector
in classBaseTrainerEffect
-
applySkipSelector
public void applySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) Description copied from class:BaseTrainerEffect
This function skips the selector, taking what it was placed on as the parameter.- Overrides:
applySkipSelector
in classBaseTrainerEffect
-