Class GameServerState

java.lang.Object
com.pixelmonmod.tcg.duel.state.GameCommonState
com.pixelmonmod.tcg.duel.state.GameServerState

public class GameServerState extends GameCommonState
  • Constructor Details

    • GameServerState

      public GameServerState()
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class GameCommonState
    • initLog

      public void initLog()
    • hasPlayer

      public boolean hasPlayer(net.minecraft.server.level.ServerPlayer player)
    • getPlayers

      public PlayerServerState[] getPlayers()
    • isGameInProgress

      public boolean isGameInProgress()
    • setGameInProgress

      public void setGameInProgress(boolean gameInProgress)
    • getSpectators

      public Map<UUID,Integer> getSpectators()
    • getPlayer

      public PlayerServerState getPlayer(int index)
    • getCurrentPlayer

      public PlayerServerState getCurrentPlayer()
    • getCurrentOpponent

      public PlayerServerState getCurrentOpponent()
    • getPlayer

      public PlayerServerState getPlayer(net.minecraft.server.level.ServerPlayer player)
    • getOpponent

      public PlayerServerState getOpponent(int index)
    • getOpponent

      public PlayerServerState getOpponent(PlayerServerState player)
    • setPlayer

      public void setPlayer(int index, PlayerServerState player)
    • getCurrentTurn

      public int getCurrentTurn()
    • getTurn

      public int getTurn(PlayerServerState p)
    • getNextTurn

      public int getNextTurn()
    • setCurrentTurn

      public void setCurrentTurn(int currentTurn)
    • isCurrentTurn

      public boolean isCurrentTurn(PlayerServerState player)
    • getRevealedCoinFlipResults

      public int getRevealedCoinFlipResults()
    • setRevealedCoinFlipResults

      public void setRevealedCoinFlipResults(int revealedCoinFlipResults)
    • getPendingAbility

      public PokemonCardState getPendingAbility()
    • setPendingAbility

      public void setPendingAbility(PokemonCardState pendingAbility)
    • getPendingAttack

      public PendingAttack getPendingAttack()
    • setPendingAttack

      public void setPendingAttack(PendingAttack pendingAttack)
    • getBurningCard

      public PokemonCardState getBurningCard()
    • setBurningCard

      public void setBurningCard(PokemonCardState burningCard)
    • getSleepingCard

      public PokemonCardState getSleepingCard()
    • setSleepingCard

      public void setSleepingCard(PokemonCardState sleepingCard)
    • 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

      public List<List<Object>> getEffectsParameters()
    • setEffectsParameters

      public void setEffectsParameters(List<List<Object>> effectsParameters)
    • getDelayEffects

      public List<DelayEffect> getDelayEffects()
    • addDelayEffect

      public void addDelayEffect(DelayEffect delayEffect)
    • exceedTimeLimit

      public boolean exceedTimeLimit()