public class ProfOak extends BaseTrainerEffect
Constructor and Description |
---|
ProfOak() |
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 |
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.
|
canPlaceOn, canPlay, flipCoin, getOpponentRevealingSelectorState, getSelectorState, handleEndTurn, modifyDamage, preventDiscard, 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 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