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 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.void
handleEndTurn
(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server) int
modifyDamage
(int damage, TrainerCardState trainer, GameServerState server) boolean
Prevent 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:
type
in classTrainerEffect
-
canPlay
Description copied from class:TrainerEffect
This is check on client to make sure the condition on trainer card are met.- Overrides:
canPlay
in classTrainerEffect
- Parameters:
client
-- Returns:
-
canApply
Description copied from class:TrainerEffect
This function makes sure all selector result are ready.- Overrides:
canApply
in classTrainerEffect
- Parameters:
trainer
-server
-- Returns:
-
apply
Description copied from class:TrainerEffect
This function applies the effect of the Trainer card.- Overrides:
apply
in classTrainerEffect
- Parameters:
trainer
-server
-
-
modifyDamage
- Overrides:
modifyDamage
in classTrainerEffect
-
preventDiscard
public boolean preventDiscard()Description copied from class:TrainerEffect
Prevent the battle controller from automatically discard the trainer- Overrides:
preventDiscard
in classTrainerEffect
- Returns:
-
handleEndTurn
public void handleEndTurn(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server) - Overrides:
handleEndTurn
in classTrainerEffect
-
canPlaceOn
- Overrides:
canPlaceOn
in classTrainerEffect
- Parameters:
card
-- Returns:
-
canSkipSelector
public boolean canSkipSelector()Description copied from class:TrainerEffect
This function is to tell if this trainer can skip the selector stage.- Overrides:
canSkipSelector
in classTrainerEffect
-
applySkipSelector
public void applySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p) Description copied from class:TrainerEffect
This function skips the selector, taking what it was placed on as the parameter.- Overrides:
applySkipSelector
in classTrainerEffect
- Parameters:
trainer
-pokemon
-server
-
-