public class GameClientState extends GameCommonState
coinFlip, gamePhase, log, stadiumCard, turnCount| Constructor and Description |
|---|
GameClientState() |
GameClientState(GameServerState server)
This is a Shim to allow Trainer logic on server to have the same logic as those on client
|
| Modifier and Type | Method and Description |
|---|---|
PlayerClientMyState |
getMe() |
PlayerClientOpponentState |
getOpponent() |
int |
getPlayerIndex() |
ImmutableCard |
getStadiumCard() |
void |
initialize() |
boolean |
isDisablingEvolution()
Check if all evolution is disabled
|
boolean |
isDisablingEvolution(PokemonCardState affecting)
Check if the evolution of a particular Pokemon is disabled
|
boolean |
isMyTurn() |
void |
setMe(PlayerClientMyState me) |
void |
setMyTurn(boolean myTurn) |
void |
setOpponent(PlayerClientOpponentState opponent) |
void |
setPlayerIndex(int playerIndex) |
void |
setStadiumCard(ImmutableCard stadiumCard) |
getCoinFlip, getGamePhase, getLog, getTurnCount, setCoinFlip, setGamePhase, setLog, setTurnCountpublic GameClientState()
public GameClientState(GameServerState server)
server - public void initialize()
initialize in class GameCommonStatepublic int getPlayerIndex()
public void setPlayerIndex(int playerIndex)
public PlayerClientMyState getMe()
public void setMe(PlayerClientMyState me)
public PlayerClientOpponentState getOpponent()
public void setOpponent(PlayerClientOpponentState opponent)
public boolean isMyTurn()
public void setMyTurn(boolean myTurn)
public ImmutableCard getStadiumCard()
getStadiumCard in class GameCommonStatepublic void setStadiumCard(ImmutableCard stadiumCard)
setStadiumCard in class GameCommonStatepublic boolean isDisablingEvolution()
public boolean isDisablingEvolution(PokemonCardState affecting)
affecting -