Class PlayerCommonState

java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
Direct Known Subclasses:
PlayerClientMyState, PlayerClientOpponentState, PlayerServerState

public abstract class PlayerCommonState extends Object
Created by Hy on 5/10/2016.
  • Field Details

    • isReady

      protected boolean isReady
    • trainerCard

      protected TrainerCardState trainerCard
    • activeCard

      protected PokemonCardState activeCard
    • benchCards

      protected PokemonCardState[] benchCards
    • graveyard

      protected List<ImmutableCard> graveyard
    • prizeCards

      protected ImmutableCard[] prizeCards
    • showPokemonsInClient

      protected boolean showPokemonsInClient
    • cardBackID

      protected String cardBackID
    • coinSetID

      protected String coinSetID
    • isChoosingOppAttack

      protected boolean isChoosingOppAttack
    • pendingPrizeCount

      protected int pendingPrizeCount
    • pendingPrizePlayerIndex

      protected int pendingPrizePlayerIndex
    • isInGUI

      protected boolean isInGUI
    • isSpectating

      protected boolean isSpectating
    • trainersDisabled

      protected boolean trainersDisabled
    • playerName

      protected String playerName
    • timeLeft

      protected Integer timeLeft
    • counterEndTime

      protected Date counterEndTime
  • Constructor Details

    • PlayerCommonState

      public PlayerCommonState()
    • PlayerCommonState

      public PlayerCommonState(PlayerServerState player, GameServerState server, boolean isMe)
    • PlayerCommonState

      public PlayerCommonState(net.minecraft.network.FriendlyByteBuf buf, GameServerState server, boolean isMe)
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
    • getHand

      public List<ImmutableCard> getHand()
    • getPlayerName

      public String getPlayerName()
    • isReady

      public boolean isReady()
    • setReady

      public void setReady(boolean ready)
    • getTrainerCard

      public TrainerCardState getTrainerCard()
    • getActiveAndBenchCards

      public List<PokemonCardState> getActiveAndBenchCards()
    • getActiveAndBenchCards

      public List<CardWithLocation> getActiveAndBenchCards(boolean isMine)
    • getActiveCard

      public PokemonCardState getActiveCard()
    • getBenchCards

      public PokemonCardState[] getBenchCards()
    • setTrainerCard

      public void setTrainerCard(TrainerCardState trainerCard)
    • setActiveCard

      public void setActiveCard(PokemonCardState activeCard)
    • setBenchCards

      public void setBenchCards(PokemonCardState[] benchCards)
    • getDiscardPile

      public List<ImmutableCard> getDiscardPile()
    • setGraveyard

      public void setGraveyard(List<ImmutableCard> graveyard)
    • getPrizeCards

      public ImmutableCard[] getPrizeCards()
    • setPrizeCards

      public void setPrizeCards(ImmutableCard[] prizeCards)
    • hasPrizeLeft

      public boolean hasPrizeLeft()
    • isInBench

      public boolean isInBench(CommonCardState card)
    • isChoosingOppAttack

      public boolean isChoosingOppAttack()
    • setChoosingOppAttack

      public void setChoosingOppAttack(boolean choosingOppAttack)
    • getCardBackID

      public String getCardBackID()
    • getCoinSetID

      public String getCoinSetID()
    • getCoin

      public Coin getCoin()
    • areTrainersDisabled

      public boolean areTrainersDisabled()
    • setAreTrainersDisabled

      public void setAreTrainersDisabled(boolean y)
    • getCard

      public PokemonCardState getCard(BoardLocation location, int locationSubindex)
    • getPendingPrizePlayerIndex

      public int getPendingPrizePlayerIndex()
    • getPendingPrizeCount

      public int getPendingPrizeCount()
    • isInGUI

      public boolean isInGUI()
    • setInGUI

      public void setInGUI(boolean inGUI)
    • getCounterEndTime

      public Date getCounterEndTime()