Class GameDeck
java.lang.Object
net.demilich.metastone.game.decks.GameDeck
- All Implemented Interfaces:
Serializable
,Cloneable
,Deck
A deck that contains cards, a name, a hero card, etc. that can be actually used to populate a player's deck in a
GameContext
.
Create an instance of this class and add cards using getCards()
's CardList.addCard(String)
method.
Set the hero class using setHeroClass(String)
. Set the format using setFormat(DeckFormat)
. This
format should correspond to the one the GameContext.getDeckFormat()
uses.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
containsHowMany
(Card card) getCards()
getName()
boolean
boolean
isFull()
void
setDescription
(String description) void
setFormat
(DeckFormat format) void
setHeroCard
(Card heroCard) void
setHeroClass
(String heroClass) void
setPlayerAttributes
(AttributeMap playerAttributes) toString()
-
Field Details
-
EMPTY
-
deckId
-
cards
-
-
Constructor Details
-
GameDeck
public GameDeck() -
GameDeck
-
GameDeck
-
GameDeck
-
-
Method Details
-
containsHowMany
-
getCards
-
getCardsCopy
-
getDescription
-
getHeroClass
-
getName
-
isComplete
public boolean isComplete() -
isFull
public boolean isFull() -
setDescription
-
setName
-
setHeroClass
-
toString
-
getHeroCard
-
setHeroCard
-
getFormat
-
setFormat
-
clone
-
getDeckId
-
setDeckId
-
setCards
-
getPlayerAttributes
-
setPlayerAttributes
-