public class BasePowerEffect
extends java.lang.Object
Constructor and Description |
---|
BasePowerEffect(java.lang.String code) |
Modifier and Type | Method and Description |
---|---|
void |
activate(PokemonCardState pokemon,
GameServerState server,
PlayerServerState player) |
boolean |
canActivate(PokemonCardState pokemon,
GameServerState server)
Passive ability does not have to override this.
|
void |
cleanUp(PokemonCardState pokemon,
GameServerState server) |
boolean |
disableEvolution(PokemonCardState pokemon,
GameClientState client)
Disable all evolution.
|
boolean |
disableEvolution(PokemonCardState affecting,
PokemonCardState pokemon,
GameClientState client)
Disable evolution of a particular Pokemon
|
boolean |
disableOtherAbilities(PokemonCardState pokemon,
GameClientState server)
Disable abilities
|
java.util.List<CoinSide> |
flipCoin()
This function returns all necessary coin flip results.
|
java.lang.String |
getCode() |
CustomGUI |
getCustomGUI(PokemonCardState pokemon,
GameServerState server) |
java.util.List<CommonCardState> |
getEnergyEquivalence(CommonCardState attachment) |
CardSelectorState |
getSelectorState(PokemonCardState pokemon,
GameServerState server) |
boolean |
holdParameters()
By default, battle controller clear all parameter after ending turns.
|
boolean |
ignoreEnergyTypes()
Rainbowfy energy
|
boolean |
isEnabled(PokemonCardState pokemon,
GameClientState client)
Making sure that the non-passive ability can be activated.
|
boolean |
isPassive()
Passive ability does not require activation
|
int |
onAttacked(PokemonCardState active,
PokemonCardState attacker,
GameServerState server) |
boolean |
onCondition(PokemonCardState pokemon,
PokemonCardState attacker,
CardCondition cardCondition,
GameServerState server) |
int |
onDamage(PokemonCardState active,
PokemonCardState attacker,
GameServerState server,
int damage) |
void |
onEndTurn(PokemonCardState pokemon,
GameServerState server) |
void |
onPlay(PokemonCardState newPokemon,
PlayerCommonState playingPlayer,
PokemonCardState pokemon,
PlayerServerState player,
GameServerState server) |
void |
onStartGame(PokemonCardState pokemon,
GameServerState server) |
void |
onSwitchActiveCard(PokemonCardState newActive,
PokemonCardState oldActive,
PlayerCommonState switchingPlayer,
PokemonCardState pokemon,
PlayerServerState player,
GameServerState server) |
int |
retreatModifier(PokemonCardState pokemon,
PlayerCommonState player) |
boolean |
revealHand()
Reveal hand of other player
|
public boolean isPassive()
public boolean isEnabled(PokemonCardState pokemon, GameClientState client)
pokemon
- client
- public int onDamage(PokemonCardState active, PokemonCardState attacker, GameServerState server, int damage)
active
- attacker
- damage
- public int onAttacked(PokemonCardState active, PokemonCardState attacker, GameServerState server)
active
- attacker
- server
- public boolean onCondition(PokemonCardState pokemon, PokemonCardState attacker, CardCondition cardCondition, GameServerState server)
pokemon
- attacker
- cardCondition
- public boolean canActivate(PokemonCardState pokemon, GameServerState server)
pokemon
- server
- public CardSelectorState getSelectorState(PokemonCardState pokemon, GameServerState server)
public CustomGUI getCustomGUI(PokemonCardState pokemon, GameServerState server)
public void activate(PokemonCardState pokemon, GameServerState server, PlayerServerState player)
public void cleanUp(PokemonCardState pokemon, GameServerState server)
public void onPlay(PokemonCardState newPokemon, PlayerCommonState playingPlayer, PokemonCardState pokemon, PlayerServerState player, GameServerState server)
public void onStartGame(PokemonCardState pokemon, GameServerState server)
public void onEndTurn(PokemonCardState pokemon, GameServerState server)
public void onSwitchActiveCard(PokemonCardState newActive, PokemonCardState oldActive, PlayerCommonState switchingPlayer, PokemonCardState pokemon, PlayerServerState player, GameServerState server)
public java.util.List<CommonCardState> getEnergyEquivalence(CommonCardState attachment)
public java.util.List<CoinSide> flipCoin()
public int retreatModifier(PokemonCardState pokemon, PlayerCommonState player)
public boolean disableEvolution(PokemonCardState pokemon, GameClientState client)
pokemon
- public boolean disableEvolution(PokemonCardState affecting, PokemonCardState pokemon, GameClientState client)
affecting
- pokemon
- public boolean disableOtherAbilities(PokemonCardState pokemon, GameClientState server)
pokemon
- public boolean holdParameters()
public boolean revealHand()
public boolean ignoreEnergyTypes()
public java.lang.String getCode()