public class ScoopUp extends BaseTrainerEffect
Constructor and Description |
---|
ScoopUp() |
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.
|
CardSelectorState |
getSelectorState(TrainerCardState trainer,
GameServerState server) |
canPlay, flipCoin, getOpponentRevealingSelectorState, handleEndTurn, modifyDamage, preventDiscard, showDiscardButton
public boolean canPlay(GameClientState client)
BaseTrainerEffect
canPlay
in class BaseTrainerEffect
public CardSelectorState getSelectorState(TrainerCardState trainer, GameServerState server)
getSelectorState
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 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