Package com.pixelmonmod.tcg.duel.trainer
Class PlusPower
java.lang.Object
com.pixelmonmod.tcg.duel.TrainerEffect
com.pixelmonmod.tcg.duel.trainer.PlusPower
Created by Hy on 5/22/2016.
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.tcg.duel.TrainerEffect
codec -
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.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 trainertype()Methods inherited from class com.pixelmonmod.tcg.duel.TrainerEffect
canPlay, codec, flipCoin, getOpponentRevealingSelectorState, getSelectorState, showDiscardButton
-
Field Details
-
CODEC
-
-
Constructor Details
-
PlusPower
public PlusPower()
-
-
Method Details
-
type
- Specified by:
typein classTrainerEffect
-
canPlay
Description copied from class:TrainerEffectThis is check on client to make sure the condition on trainer card are met.- Overrides:
canPlayin classTrainerEffect- Parameters:
client-- Returns:
-
canApply
Description copied from class:TrainerEffectThis function makes sure all selector result are ready.- Overrides:
canApplyin classTrainerEffect- Parameters:
trainer-server-- Returns:
-
apply
Description copied from class:TrainerEffectThis function applies the effect of the Trainer card.- Overrides:
applyin classTrainerEffect- Parameters:
trainer-server-
-
modifyDamage
- Overrides:
modifyDamagein classTrainerEffect
-
preventDiscard
public boolean preventDiscard()Description copied from class:TrainerEffectPrevent the battle controller from automatically discard the trainer- Overrides:
preventDiscardin classTrainerEffect- Returns:
-
handleEndTurn
public void handleEndTurn(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server) - Overrides:
handleEndTurnin classTrainerEffect
-
canPlaceOn
- Overrides:
canPlaceOnin classTrainerEffect- Parameters:
card-- Returns:
-
canSkipSelector
public boolean canSkipSelector()Description copied from class:TrainerEffectThis function is to tell if this trainer can skip the selector stage.- Overrides:
canSkipSelectorin classTrainerEffect
-
applySkipSelector
public void applySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) Description copied from class:TrainerEffectThis function skips the selector, taking what it was placed on as the parameter.- Overrides:
applySkipSelectorin classTrainerEffect- Parameters:
trainer-pokemon-server-
-