Package com.pixelmonmod.tcg.duel.trainer
Class Defender
java.lang.Object
com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffect
com.pixelmonmod.tcg.duel.trainer.Defender
Created by Hy on 5/22/2016.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.booleancanPlaceOn(CardWithLocation card) 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.voidhandleEndTurn(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server) intmodifyDamage(int damage, TrainerCardState trainer, GameServerState server) booleanPrevent the battle controller from automatically discard the trainerMethods inherited from class com.pixelmonmod.tcg.duel.trainer.BaseTrainerEffectcanPlay, flipCoin, getId, getOpponentRevealingSelectorState, getSelectorState, showDiscardButton
- 
Constructor Details- 
Defenderpublic Defender()
 
- 
- 
Method Details- 
canPlayDescription copied from class:BaseTrainerEffectThis is check on client to make sure the condition on trainer card are met.- Overrides:
- canPlayin class- BaseTrainerEffect
- Returns:
 
- 
canApplyDescription copied from class:BaseTrainerEffectThis function makes sure all selector result are ready.- Overrides:
- canApplyin class- BaseTrainerEffect
- Returns:
 
- 
applyDescription copied from class:BaseTrainerEffectThis function applies the effect of the Trainer card.- Overrides:
- applyin class- BaseTrainerEffect
 
- 
modifyDamage- Overrides:
- modifyDamagein class- BaseTrainerEffect
 
- 
preventDiscardpublic boolean preventDiscard()Description copied from class:BaseTrainerEffectPrevent the battle controller from automatically discard the trainer- Overrides:
- preventDiscardin class- BaseTrainerEffect
- Returns:
 
- 
handleEndTurnpublic void handleEndTurn(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server) - Overrides:
- handleEndTurnin class- BaseTrainerEffect
 
- 
canPlaceOn- Overrides:
- canPlaceOnin class- BaseTrainerEffect
- Returns:
 
- 
canSkipSelectorpublic boolean canSkipSelector()Description copied from class:BaseTrainerEffectThis function is to tell if this trainer can skip the selector stage.- Overrides:
- canSkipSelectorin class- BaseTrainerEffect
 
- 
applySkipSelectorpublic 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 class- BaseTrainerEffect
 
 
-