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
ConstructorDescriptionGameClientState
(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()
int
void
boolean
Check if all evolution is disabledboolean
isDisablingEvolution
(PokemonCardState affecting) Check if the evolution of a particular Pokemon is disabledboolean
isMyTurn()
void
void
setMyTurn
(boolean myTurn) void
setOpponent
(PlayerClientOpponentState opponent) void
setPlayerIndex
(int playerIndex) void
setStadiumCard
(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:
initialize
in 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:
getStadiumCard
in classGameCommonState
-
setStadiumCard
- Overrides:
setStadiumCard
in 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:
-