Package com.pixelmonmod.tcg.duel.state
Class PlayerCommonState
java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
- Direct Known Subclasses:
PlayerClientMyState
,PlayerClientOpponentState
,PlayerServerState
Created by Hy on 5/10/2016.
-
Field Summary
Modifier and TypeFieldDescriptionprotected PokemonCardState
protected PokemonCardState[]
protected String
protected String
protected Date
protected List<ImmutableCard>
protected boolean
protected boolean
protected boolean
protected boolean
protected int
protected int
protected String
protected ImmutableCard[]
protected boolean
protected Integer
protected TrainerCardState
protected boolean
-
Constructor Summary
ConstructorDescriptionPlayerCommonState
(PlayerServerState player, GameServerState server, boolean isMe) PlayerCommonState
(net.minecraft.network.FriendlyByteBuf buf, GameServerState server, boolean isMe) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getActiveAndBenchCards
(boolean isMine) getCard
(BoardLocation location, int locationSubindex) getCoin()
getHand()
int
int
boolean
boolean
boolean
isInBench
(CommonCardState card) boolean
isInGUI()
boolean
isReady()
void
setActiveCard
(PokemonCardState activeCard) void
setAreTrainersDisabled
(boolean y) void
setBenchCards
(PokemonCardState[] benchCards) void
setChoosingOppAttack
(boolean choosingOppAttack) void
setGraveyard
(List<ImmutableCard> graveyard) void
setInGUI
(boolean inGUI) void
setPrizeCards
(ImmutableCard[] prizeCards) void
setReady
(boolean ready) void
setTrainerCard
(TrainerCardState trainerCard) void
write
(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
isReady
protected boolean isReady -
trainerCard
-
activeCard
-
benchCards
-
graveyard
-
prizeCards
-
showPokemonsInClient
protected boolean showPokemonsInClient -
cardBackID
-
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
-
timeLeft
-
counterEndTime
-
-
Constructor Details
-
PlayerCommonState
public PlayerCommonState() -
PlayerCommonState
-
PlayerCommonState
public PlayerCommonState(net.minecraft.network.FriendlyByteBuf buf, GameServerState server, boolean isMe)
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
getHand
-
getPlayerName
-
isReady
public boolean isReady() -
setReady
public void setReady(boolean ready) -
getTrainerCard
-
getActiveAndBenchCards
-
getActiveAndBenchCards
-
getActiveCard
-
getBenchCards
-
setTrainerCard
-
setActiveCard
-
setBenchCards
-
getDiscardPile
-
setGraveyard
-
getPrizeCards
-
setPrizeCards
-
hasPrizeLeft
public boolean hasPrizeLeft() -
isInBench
-
isChoosingOppAttack
public boolean isChoosingOppAttack() -
setChoosingOppAttack
public void setChoosingOppAttack(boolean choosingOppAttack) -
getCardBackID
-
getCoinSetID
-
getCoin
-
areTrainersDisabled
public boolean areTrainersDisabled() -
setAreTrainersDisabled
public void setAreTrainersDisabled(boolean y) -
getCard
-
getPendingPrizePlayerIndex
public int getPendingPrizePlayerIndex() -
getPendingPrizeCount
public int getPendingPrizeCount() -
isInGUI
public boolean isInGUI() -
setInGUI
public void setInGUI(boolean inGUI) -
getCounterEndTime
-