public class PlusPower extends BaseTrainerEffect
Constructor and Description |
---|
PlusPower() |
Modifier and Type | Method and Description |
---|---|
void |
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 |
canSkipSelector()
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 |
preventDiscard()
Prevent the battle controller from automatically discard the trainer
|
canPlay, flipCoin, getOpponentRevealingSelectorState, getSelectorState, showDiscardButton
public boolean canPlay(GameClientState client)
BaseTrainerEffect
canPlay
in class BaseTrainerEffect
public boolean canApply(TrainerCardState trainer, GameServerState server)
BaseTrainerEffect
canApply
in class BaseTrainerEffect
public void apply(TrainerCardState trainer, GameServerState server)
BaseTrainerEffect
apply
in class BaseTrainerEffect
public int modifyDamage(int damage, TrainerCardState trainer, GameServerState server)
modifyDamage
in class BaseTrainerEffect
public boolean preventDiscard()
BaseTrainerEffect
preventDiscard
in class BaseTrainerEffect
public void handleEndTurn(TrainerCardState trainer, PokemonCardState card, PlayerServerState player, GameServerState server)
handleEndTurn
in class BaseTrainerEffect
public boolean canPlaceOn(CardWithLocation card)
canPlaceOn
in class BaseTrainerEffect
public boolean canSkipSelector()
BaseTrainerEffect
canSkipSelector
in class BaseTrainerEffect
public void applySkipSelector(TrainerCardState trainer, PokemonCardState pokemon, GameServerState server, BoardLocation b, int p)
BaseTrainerEffect
applySkipSelector
in class BaseTrainerEffect