Package com.pixelmonmod.tcg.duel.state
Class GameClientState
java.lang.Object
com.pixelmonmod.tcg.duel.state.GameCommonState
com.pixelmonmod.tcg.duel.state.GameClientState
Created by SamPlummer on 20/04/2016.
-
Field Summary
Fields inherited from class com.pixelmonmod.tcg.duel.state.GameCommonState
coinFlip, gamePhase, log, stadiumCard, turnCount -
Constructor Summary
ConstructorsConstructorDescriptionGameClientState(GameServerState server) This is a Shim to allow Trainer logic on server to have the same logic as those on client -
Method Summary
Modifier and TypeMethodDescriptiongetMe()intvoidbooleanCheck if all evolution is disabledbooleanisDisablingEvolution(PokemonCardState affecting) Check if the evolution of a particular Pokemon is disabledbooleanisMyTurn()voidvoidsetMyTurn(boolean myTurn) voidsetOpponent(PlayerClientOpponentState opponent) voidsetPlayerIndex(int playerIndex) voidsetStadiumCard(ImmutableCard stadiumCard) Methods inherited from class com.pixelmonmod.tcg.duel.state.GameCommonState
getCoinFlip, getGamePhase, getLog, getTurnCount, setCoinFlip, setGamePhase, setLog, setTurnCount
-
Constructor Details
-
GameClientState
public GameClientState() -
GameClientState
This is a Shim to allow Trainer logic on server to have the same logic as those on client- Parameters:
server-
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classGameCommonState
-
getPlayerIndex
public int getPlayerIndex() -
setPlayerIndex
public void setPlayerIndex(int playerIndex) -
getMe
-
setMe
-
getOpponent
-
setOpponent
-
isMyTurn
public boolean isMyTurn() -
setMyTurn
public void setMyTurn(boolean myTurn) -
getStadiumCard
- Overrides:
getStadiumCardin classGameCommonState
-
setStadiumCard
- Overrides:
setStadiumCardin classGameCommonState
-
isDisablingEvolution
public boolean isDisablingEvolution()Check if all evolution is disabled- Returns:
-
isDisablingEvolution
Check if the evolution of a particular Pokemon is disabled- Parameters:
affecting-- Returns:
-