public class GameServerState extends GameCommonState
coinFlip, gamePhase, log, stadiumCard, turnCount
Constructor and Description |
---|
GameServerState() |
Modifier and Type | Method and Description |
---|---|
void |
addDelayEffect(DelayEffect delayEffect) |
boolean |
exceedTimeLimit() |
PokemonCardState |
getBurningCard() |
int |
getCurrentEffectIndex() |
PlayerServerState |
getCurrentOpponent() |
PlayerServerState |
getCurrentPlayer() |
int |
getCurrentTurn() |
java.util.List<DelayEffect> |
getDelayEffects() |
java.util.List<java.util.List<java.lang.Object>> |
getEffectsParameters() |
int |
getNextTurn() |
PlayerServerState |
getOpponent(int index) |
PlayerServerState |
getOpponent(PlayerServerState player) |
PokemonCardState |
getPendingAbility() |
PendingAttack |
getPendingAttack() |
PlayerServerState |
getPlayer(int index) |
PlayerServerState |
getPlayer(net.minecraft.entity.player.ServerPlayerEntity player) |
PlayerServerState[] |
getPlayers() |
java.util.Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,java.lang.Integer>> |
getResolvingConditionCards() |
int |
getRevealedCoinFlipResults() |
PokemonCardState |
getSleepingCard() |
java.util.Map<java.util.UUID,java.lang.Integer> |
getSpectators() |
int |
getTurn(PlayerServerState p) |
boolean |
hasPlayer(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
initialize() |
void |
initLog() |
boolean |
isCurrentTurn(PlayerServerState player) |
boolean |
isGameInProgress() |
boolean |
isHandledAsleep() |
boolean |
isHandledBurned() |
boolean |
isHandledConfusedFlip() |
boolean |
isHandledParalyzed() |
boolean |
isHandledPoisoned() |
void |
setBurningCard(PokemonCardState burningCard) |
void |
setCurrentEffectIndex(int currentEffectIndex) |
void |
setCurrentTurn(int currentTurn) |
void |
setEffectsParameters(java.util.List<java.util.List<java.lang.Object>> effectsParameters) |
void |
setGameInProgress(boolean gameInProgress) |
void |
setHandledAsleep(boolean handledAsleep) |
void |
setHandledBurned(boolean handledBurned) |
void |
setHandledConfusedFlip(boolean handledConfusedFlip) |
void |
setHandledParalyzed(boolean handledParalyzed) |
void |
setHandledPoisoned(boolean handledPoisoned) |
void |
setPendingAbility(PokemonCardState pendingAbility) |
void |
setPendingAttack(PendingAttack pendingAttack) |
void |
setPlayer(int index,
PlayerServerState player) |
void |
setResolvingConditionCards(java.util.Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,java.lang.Integer>> resolvingConditionCards) |
void |
setRevealedCoinFlipResults(int revealedCoinFlipResults) |
void |
setSleepingCard(PokemonCardState sleepingCard) |
getCoinFlip, getGamePhase, getLog, getStadiumCard, getTurnCount, setCoinFlip, setGamePhase, setLog, setStadiumCard, setTurnCount
public void initialize()
initialize
in class GameCommonState
public void initLog()
public boolean hasPlayer(net.minecraft.entity.player.ServerPlayerEntity player)
public PlayerServerState[] getPlayers()
public boolean isGameInProgress()
public void setGameInProgress(boolean gameInProgress)
public java.util.Map<java.util.UUID,java.lang.Integer> getSpectators()
public PlayerServerState getPlayer(int index)
public PlayerServerState getCurrentPlayer()
public PlayerServerState getCurrentOpponent()
public PlayerServerState getPlayer(net.minecraft.entity.player.ServerPlayerEntity player)
public PlayerServerState getOpponent(int index)
public PlayerServerState getOpponent(PlayerServerState player)
public void setPlayer(int index, PlayerServerState player)
public int getCurrentTurn()
public int getTurn(PlayerServerState p)
public int getNextTurn()
public void setCurrentTurn(int currentTurn)
public boolean isCurrentTurn(PlayerServerState player)
public int getRevealedCoinFlipResults()
public void setRevealedCoinFlipResults(int revealedCoinFlipResults)
public PokemonCardState getPendingAbility()
public void setPendingAbility(PokemonCardState pendingAbility)
public PendingAttack getPendingAttack()
public void setPendingAttack(PendingAttack pendingAttack)
public PokemonCardState getBurningCard()
public void setBurningCard(PokemonCardState burningCard)
public PokemonCardState getSleepingCard()
public void setSleepingCard(PokemonCardState sleepingCard)
public boolean isHandledPoisoned()
public void setHandledPoisoned(boolean handledPoisoned)
public boolean isHandledBurned()
public void setHandledBurned(boolean handledBurned)
public boolean isHandledAsleep()
public void setHandledAsleep(boolean handledAsleep)
public boolean isHandledParalyzed()
public void setHandledParalyzed(boolean handledParalyzed)
public boolean isHandledConfusedFlip()
public void setHandledConfusedFlip(boolean handledConfusedFlip)
public java.util.Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,java.lang.Integer>> getResolvingConditionCards()
public void setResolvingConditionCards(java.util.Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,java.lang.Integer>> resolvingConditionCards)
public int getCurrentEffectIndex()
public void setCurrentEffectIndex(int currentEffectIndex)
public java.util.List<java.util.List<java.lang.Object>> getEffectsParameters()
public void setEffectsParameters(java.util.List<java.util.List<java.lang.Object>> effectsParameters)
public java.util.List<DelayEffect> getDelayEffects()
public void addDelayEffect(DelayEffect delayEffect)
public boolean exceedTimeLimit()