Package com.pixelmonmod.tcg.duel.state
Class GameServerState
java.lang.Object
com.pixelmonmod.tcg.duel.state.GameCommonState
com.pixelmonmod.tcg.duel.state.GameServerState
-
Field Summary
Fields inherited from class com.pixelmonmod.tcg.duel.state.GameCommonState
coinFlip, gamePhase, log, stadiumCard, turnCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelayEffect
(DelayEffect delayEffect) boolean
int
int
int
getOpponent
(int index) getOpponent
(PlayerServerState player) getPlayer
(int index) getPlayer
(net.minecraft.server.level.ServerPlayer player) Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,
Integer>> int
int
boolean
hasPlayer
(net.minecraft.server.level.ServerPlayer player) void
void
initLog()
boolean
isCurrentTurn
(PlayerServerState player) boolean
boolean
boolean
boolean
boolean
boolean
void
setBurningCard
(PokemonCardState burningCard) void
setCurrentEffectIndex
(int currentEffectIndex) void
setCurrentTurn
(int currentTurn) void
setEffectsParameters
(List<List<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
(Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState, Integer>> resolvingConditionCards) void
setRevealedCoinFlipResults
(int revealedCoinFlipResults) void
setSleepingCard
(PokemonCardState sleepingCard) Methods inherited from class com.pixelmonmod.tcg.duel.state.GameCommonState
getCoinFlip, getGamePhase, getLog, getStadiumCard, getTurnCount, setCoinFlip, setGamePhase, setLog, setStadiumCard, setTurnCount
-
Constructor Details
-
GameServerState
public GameServerState()
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classGameCommonState
-
initLog
public void initLog() -
hasPlayer
public boolean hasPlayer(net.minecraft.server.level.ServerPlayer player) -
getPlayers
-
isGameInProgress
public boolean isGameInProgress() -
setGameInProgress
public void setGameInProgress(boolean gameInProgress) -
getSpectators
-
getPlayer
-
getCurrentPlayer
-
getCurrentOpponent
-
getPlayer
-
getOpponent
-
getOpponent
-
setPlayer
-
getCurrentTurn
public int getCurrentTurn() -
getTurn
-
getNextTurn
public int getNextTurn() -
setCurrentTurn
public void setCurrentTurn(int currentTurn) -
isCurrentTurn
-
getRevealedCoinFlipResults
public int getRevealedCoinFlipResults() -
setRevealedCoinFlipResults
public void setRevealedCoinFlipResults(int revealedCoinFlipResults) -
getPendingAbility
-
setPendingAbility
-
getPendingAttack
-
setPendingAttack
-
getBurningCard
-
setBurningCard
-
getSleepingCard
-
setSleepingCard
-
isHandledPoisoned
public boolean isHandledPoisoned() -
setHandledPoisoned
public void setHandledPoisoned(boolean handledPoisoned) -
isHandledBurned
public boolean isHandledBurned() -
setHandledBurned
public void setHandledBurned(boolean handledBurned) -
isHandledAsleep
public boolean isHandledAsleep() -
setHandledAsleep
public void setHandledAsleep(boolean handledAsleep) -
isHandledParalyzed
public boolean isHandledParalyzed() -
setHandledParalyzed
public void setHandledParalyzed(boolean handledParalyzed) -
isHandledConfusedFlip
public boolean isHandledConfusedFlip() -
setHandledConfusedFlip
public void setHandledConfusedFlip(boolean handledConfusedFlip) -
getResolvingConditionCards
public Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState,Integer>> getResolvingConditionCards() -
setResolvingConditionCards
public void setResolvingConditionCards(Queue<org.apache.commons.lang3.tuple.Pair<PokemonCardState, Integer>> resolvingConditionCards) -
getCurrentEffectIndex
public int getCurrentEffectIndex() -
setCurrentEffectIndex
public void setCurrentEffectIndex(int currentEffectIndex) -
getEffectsParameters
-
setEffectsParameters
-
getDelayEffects
-
addDelayEffect
-
exceedTimeLimit
public boolean exceedTimeLimit()
-