Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
F
G
I
O
R
S
T
Z
A
add(Card)
- Method in class
Deck
Adds a given card at the top of this deck.
C
Card
- class
Card
.
Represents a generic Card with a given int ID.
Card(int)
- Constructor for class
Card
Construcs a card with a given id.
cardsInDeck()
- Method in class
ZetTable
Returns the number of cards left in the deck.
compactOpenCards()
- Method in class
ZetTable
If there are gaps in the first dfltOpenCards and some open cards beyond dfltOpenCards, the latter are moved to fill the gaps.
compareTo(Object)
- Method in class
Card
Compares this card with the specified object for order.
D
Deck
- class
Deck
.
Deck()
- Constructor for class
Deck
Constructs an empty deck of cards.
Deck(int)
- Constructor for class
Deck
Constructs an empty deck of cards with a given capacity.
E
enoughOpen()
- Method in class
ZetTable
Indicates whether there is a sufficient number of open cards.
equals(Object)
- Method in class
Card
Indicates whether some other object is "equal to" this one.
F
findZet(ZetCard[])
- Static method in class
ZetAnalyzer
Finds the indices of three cards from a given array that form a "set".
findZet()
- Method in class
ZetTable
Finds a "set" in the open cards.
G
getColor()
- Method in class
ZetCard
Returns this card's color code: 1 for red, 2 for green, 3 for blue.
getFill()
- Method in class
ZetCard
Returns this card's fill code: 1 for outlined, 2 for solid, 3 for striped.
getId()
- Method in class
Card
Returns this card's id.
getNumCards()
- Method in class
Deck
Returns the number of cards in this deck.
getNumber()
- Method in class
ZetCard
Returns the number of symbols on this card.
getOpenCard(int)
- Method in class
ZetTable
Returns the open card with a given index.
getShape()
- Method in class
ZetCard
Returns this card's shape code: 1 for oval, 2 for squiggle, 3 for diamond.
I
isEmpty()
- Method in class
Deck
Indicates whether this deck is empty.
isZet(ZetCard, ZetCard, ZetCard)
- Static method in class
ZetAnalyzer
Returns true if card1, card2, and card3 form a "set," false otherwise.
O
open3Cards()
- Method in class
ZetTable
Opens three cards from the deck if three cards are available in the deck.
R
remove3Cards(int[])
- Method in class
ZetTable
Removes three cards with given indices from the open cards.
S
shuffle()
- Method in class
Deck
Shuffles this deck.
sort()
- Method in class
Deck
Sorts this deck in acsending order of IDs.
T
takeTop()
- Method in class
Deck
Removes and returns the top card from this deck.
toString()
- Method in class
Card
Returns a String representation of this card.
toString()
- Method in class
Deck
Returns a string representation of this deck.
toString()
- Method in class
ZetCard
Returns a String representation of this card.
toString()
- Method in class
ZetTable
Returns a string representation of this "set table".
Z
ZetAnalyzer
- class
ZetAnalyzer
.
Provides static methods for finding sets.
ZetAnalyzer()
- Constructor for class
ZetAnalyzer
ZetCard
- class
ZetCard
.
Represents a card for the game of Set.
ZetCard(int, int, int, int)
- Constructor for class
ZetCard
Constructs a Set game card with given attributes.
ZetDeck
- class
ZetDeck
.
Represents a deck of cards for the game of Set.
ZetDeck()
- Constructor for class
ZetDeck
Constructs a deck for the Set game.
ZetTable
- class
ZetTable
.
Represents a card table with a deck and an array of open cards for the game of Set.
ZetTable()
- Constructor for class
ZetTable
Creates a new deck and opens dfltOpenCards cards.
A
C
D
E
F
G
I
O
R
S
T
Z
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes