Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
J
K
M
N
P
Q
R
S
T
V
A
ACE
- Static variable in interface cardgame.
Card
This value represents the card name "Ace"
addPlayingCard(PlayingCard)
- Method in class cardgame.
Deck
The public method addPlayingCard aids in creating non-standard decks.
B
backImageFileName
- Variable in class cardgame.
PlayingCard
The private variable backImageFileName stores the file name that represents the back of a PlayingCard.
buildStandardDeck()
- Method in class cardgame.
Deck
The public method buildStandardDeck assembles a standard Deck of 52 PlayingCards.
C
Card
- interface cardgame.
Card
.
The Card interface defines a basic card that can be used in various kinds of games.
cardgame
- package cardgame
CLUB
- Static variable in interface cardgame.
Card
This value represents the card suit "Club"
D
dealPlayingCard()
- Method in class cardgame.
Deck
The public method dealPlayingCard simulates the dealing of a card from the top of the deck.
Deck
- class cardgame.
Deck
.
The Deck class represents a deck of cards which can be used for various kinds of card games.
Deck()
- Constructor for class cardgame.
Deck
The no-argument constructor creates a single standard deck with 52 cards.
Deck(boolean)
- Constructor for class cardgame.
Deck
This constructor allows for the creation of non-standard decks of cards; e.g., decks of less than 52 cards.
Deck(int)
- Constructor for class cardgame.
Deck
This constructor creates a deck composed of multiples of a standard deck.
deckBackImageFileName
- Variable in class cardgame.
Deck
The private variable deckBackImageFileName stores the file name that represents the back of each PlayingCard in a Deck.
DEFAULT_MAXIMUM_RANGE
- Static variable in class cardgame.
RandomIntGenerator
The public variable DEFAULT_MAXIMUM_RANGE defines the largest integer that will be generated when the no-argument constructor is used.
DEFAULT_MINIMUM_RANGE
- Static variable in class cardgame.
RandomIntGenerator
The public variable DEFAULT_MINIMUM_RANGE defines the smallest integer that will be generated when the no-argument constructor is used.
DIAMOND
- Static variable in interface cardgame.
Card
This value represents the card suit "Diamond"
E
EIGHT
- Static variable in interface cardgame.
Card
This value represents the card name "Eight"
equals(Card)
- Method in class cardgame.
PlayingCard
The public method equals checks whether two PlayingCards have the same name and suit, and returns a boolean result.
equals(Card)
- Method in interface cardgame.
Card
The public method equals checks whether two Cards have the same name and suit, and returns a boolean result.
equals(Player)
- Method in class cardgame.
Player
The public method equals checks whether two Players are the same by testing whether the names are the same, returning a boolean result.
F
FIVE
- Static variable in interface cardgame.
Card
This value represents the card name "Five"
FOUR
- Static variable in interface cardgame.
Card
This value represents the card name "Four"
frontImageFileName
- Variable in class cardgame.
PlayingCard
The private variable frontImageFileName stores the file name that represents the front of a PlayingCard.
G
getBackImageFileName()
- Method in class cardgame.
PlayingCard
The public method getBackImageFileName returns the file name containing a PlayingCard's back image.
getBackImageFileName()
- Method in interface cardgame.
Card
The public method getBackImageFileName returns the file name containing the Card's back image.
getCardsDealt()
- Method in class cardgame.
Deck
The public method getCardsDealt returns the current number of cards that have been dealt from a Deck.
getCardsLeft()
- Method in class cardgame.
Deck
The public method getCardsLeft returns the current number of cards that are left in a Deck.
getDeckBackImageFileName()
- Method in class cardgame.
Deck
The public method getDeckBackImageFileName specifies a file name containing an image to use when constructing all of a Deck's PlayingCards.
getDeckState()
- Method in class cardgame.
Deck
The public method getDeckState returns a useful String representation of the current state of a Deck.
getFrontImageFileName()
- Method in class cardgame.
PlayingCard
The public method getFrontImageFileName returns the file name containing a PlayingCard's front image.
getFrontImageFileName()
- Method in interface cardgame.
Card
The public method getFrontImageFileName returns the file name containing the Card's front image.
getMoney()
- Method in class cardgame.
Player
The public method getMoney retrieves the amount of money a Player currently has.
getName()
- Method in class cardgame.
Player
The public method getName retrieves the name a Player is using for a game.
getName()
- Method in class cardgame.
PlayingCard
The public method getName returns the name of a PlayingCard.
getName()
- Method in interface cardgame.
Card
The public method getName returns the name of the Card.
getNumberOfCards()
- Method in class cardgame.
Deck
The public method getNumberOfCards returns the initial number of cards that a Deck had when created.
getNumberOfDecks()
- Method in class cardgame.
Deck
The public method getNumberOfDecks indicates the number of decks created by a Deck constructor.
getPlayerState()
- Method in class cardgame.
Player
The public method getPlayerState returns a useful String representation of the current state of a Player.
getStandardDeck()
- Method in class cardgame.
Deck
The public method getStandardDeck indicates whether a Deck is a standard deck or not.
getSuit()
- Method in class cardgame.
PlayingCard
The public method getSuit returns the suit of a Card.
getSuit()
- Method in interface cardgame.
Card
The public method getSuit returns the suit of the Card.
getValue()
- Method in class cardgame.
PlayingCard
The public method getValue returns the numeric value of a PlayingCard.
getValue()
- Method in interface cardgame.
Card
The public method getValue returns the numeric value of the Card.
getVisibility()
- Method in class cardgame.
PlayingCard
The public method getVisibility is used to retrieve the current state of a PlayingCard's visibility.
getVisibility()
- Method in interface cardgame.
Card
The public method getVisibility is used to retrieve the current state of a Card's visibility.
H
hand
- Variable in class cardgame.
Player
The private variable hand is a Java Vector that stores the PlayingCards that a Player is holding.
HEART
- Static variable in interface cardgame.
Card
This value represents the card suit "Heart"
J
JACK
- Static variable in interface cardgame.
Card
This value represents the card name "Jack"
K
KING
- Static variable in interface cardgame.
Card
This value represents the card name "King"
M
maximumRange
- Variable in class cardgame.
RandomIntGenerator
The private variable maximumRange defines the largest integer that will be generated and is set by the setRange method.
minimumRange
- Variable in class cardgame.
RandomIntGenerator
The private variable minimumRange defines the smallest integer that will be generated and is set by the setRange method.
money
- Variable in class cardgame.
Player
The private variable money stores the amount of money a Player has at a given time.
N
name
- Variable in class cardgame.
Player
The private variable name stores the name assigned to a Player.
name
- Variable in class cardgame.
PlayingCard
The private variable name represents the common name of a PlayingCard, such as "Ace," "Deuce," or "King."
nextRandomInt()
- Method in class cardgame.
RandomIntGenerator
The public method nextRandomInt is used to generate and return the next random integer.
NINE
- Static variable in interface cardgame.
Card
This value represents the card name "Nine"
numberOfCalls
- Variable in class cardgame.
RandomIntGenerator
The private variable numberOfCalls keeps track of the number of integers that have been generated.
numberOfCards
- Variable in class cardgame.
Deck
The private variable numberOfCards represents the initial number of cards in a Deck.
numberOfDecks
- Variable in class cardgame.
Deck
The private variable numberOfDecks represents the number of standard decks in a Deck.
P
Player
- class cardgame.
Player
.
The Player class models an individual card player.
Player()
- Constructor for class cardgame.
Player
The no-argument constructor creates a Player with the name "Unknown" and an zero initial amount of money.
Player(String, int)
- Constructor for class cardgame.
Player
This constructor creates a Player with a specified name and initial amount of money.
PlayingCard
- class cardgame.
PlayingCard
.
The PlayingCard class implements a basic card via the Card interface that can be used for various kinds of games.
PlayingCard()
- Constructor for class cardgame.
PlayingCard
The no-argument constructor sets the PlayingCard's variables to default values.
PlayingCard(String, String)
- Constructor for class cardgame.
PlayingCard
This basic constructor sets the PlayingCard's name and suit.
PlayingCard(String, String, int)
- Constructor for class cardgame.
PlayingCard
This constructor sets the PlayingCard's name, suit, and value parameters.
PlayingCard(String, String, int, String, String)
- Constructor for class cardgame.
PlayingCard
This constructor sets the PlayingCard's name, suit, front, and back images.
Q
QUEEN
- Static variable in interface cardgame.
Card
This value represents the card name "Queen"
R
random
- Variable in class cardgame.
RandomIntGenerator
The private variable random is a Java Random class object.
RandomIntGenerator
- class cardgame.
RandomIntGenerator
.
The RandomIntGenerator class provides a way to generate random integers within a specific range.
RandomIntGenerator()
- Constructor for class cardgame.
RandomIntGenerator
The no-argument constructor creates random numbers within the default limits by supplying the defaults to the two-argument constructor.
RandomIntGenerator(int, int)
- Constructor for class cardgame.
RandomIntGenerator
This constructor creates random numbers within user-specified limits.
randomize(Vector)
- Method in class cardgame.
VectorRandomizer
The public method randomize takes a Vector and reorders the elements to be in a random order.
range
- Variable in class cardgame.
RandomIntGenerator
The private variable range defines the number of integers that will be generated and is calculated in the setRange method.
S
setBackImageFileName(String)
- Method in class cardgame.
PlayingCard
The public method setBackImageFileName specifies the file name containing a PlayingCard's back image.
setBackImageFileName(String)
- Method in interface cardgame.
Card
The public method setBackImageFileName specifies the file name containing the Card's back image.
setDeckBackImageFileName(String)
- Method in class cardgame.
Deck
The public method setDeckBackImageFileName specifies a file name containing an image to use when constructing all of a Deck's PlayingCards.
setFrontImageFileName(String)
- Method in class cardgame.
PlayingCard
The public method setFrontImageFileName specifies the file name containing a PlayingCard's front image.
setFrontImageFileName(String)
- Method in interface cardgame.
Card
The public method setFrontImageFileName specifies the file name containing the Card's front image.
setMoney(int)
- Method in class cardgame.
Player
The public method setMoney specifies the amount of money a Player wins or loses.
setName(String)
- Method in class cardgame.
Player
The public method setName specifies the name a Player will use.
setName(String)
- Method in class cardgame.
PlayingCard
The public method setName sets the name of a PlayingCard.
setName(String)
- Method in interface cardgame.
Card
The public method setName sets the name of the Card.
setRange(int, int)
- Method in class cardgame.
RandomIntGenerator
The private method setRange is used by the constructors to set the minimum and maximum range.
setSuit(String)
- Method in class cardgame.
PlayingCard
The public method setSuit sets the suit of a PlayingCard.
setSuit(String)
- Method in interface cardgame.
Card
The public method setSuit sets the suit of the Card.
setValue(int)
- Method in class cardgame.
PlayingCard
The public method setValue sets the numeric value of a PlayingCard.
setValue(int)
- Method in interface cardgame.
Card
The public method setValue sets the numeric value of the Card.
setVisibility(boolean)
- Method in class cardgame.
PlayingCard
The public method setVisibility is used to set a PlayingCard's current state of visibility.
setVisibility(boolean)
- Method in interface cardgame.
Card
The public method setVisibility is used to set a Card's current state of visibility.
SEVEN
- Static variable in interface cardgame.
Card
This value represents the card name "Seven"
shuffle()
- Method in class cardgame.
Deck
The public method shuffle reorders the PlayingCards in a Deck to be in random order.
SIX
- Static variable in interface cardgame.
Card
This value represents the card name "Six"
SPADE
- Static variable in interface cardgame.
Card
This value represents the card suit "Spade"
stack
- Variable in class cardgame.
Deck
The private variable stack is a java Stack (which extends Vector) that stores all PlayingCards created for a Deck.
standardDeck
- Variable in class cardgame.
Deck
The private variable standardDeck indicates whether a Deck is a standard deck or not.
statisticalMode
- Variable in class cardgame.
VectorRandomizer
The private variable statisticalMode determines whether statistical information will be sent to standard out.
suit
- Variable in class cardgame.
PlayingCard
The private variable suit represents one of the four standard suits, such as "Heart," "Spade," "Diamond," or "Club."
T
TEN
- Static variable in interface cardgame.
Card
This value represents the card name "Ten"
THREE
- Static variable in interface cardgame.
Card
This value represents the card name "Three"
toString()
- Method in class cardgame.
Player
The public method toString returns a complete specification of a Player's current state in a convenient tagged format.
toString()
- Method in class cardgame.
Deck
The public method toString returns a complete specification of a Deck's current state in a convenient tagged format.
toString()
- Method in class cardgame.
PlayingCard
The public method toString returns the String representation of a PlayingCard, such as "Ace of Spades."
toString()
- Method in interface cardgame.
Card
The public method toString returns the String representation of the Card, such as "Ace of Spades."
TWO
- Static variable in interface cardgame.
Card
This value represents the card name "Two"
V
value
- Variable in class cardgame.
PlayingCard
The private variable value represents the numerical value of a PlayingCard.
VectorRandomizer
- class cardgame.
VectorRandomizer
.
The VectorRandomizer class provides a way to arrange the elements of a Java Vector in random order.
VectorRandomizer()
- Constructor for class cardgame.
VectorRandomizer
The no-argument constructor creates an instance of VectorRandomizer.
VectorRandomizer(boolean)
- Constructor for class cardgame.
VectorRandomizer
This constructor creates an instance of VectorRandomizer and allows the statistical mode to be set to true.
visibility
- Variable in class cardgame.
PlayingCard
The private variable visibility indicates whether a PlayingCard is face up (true) or face down (false).
A
B
C
D
E
F
G
H
J
K
M
N
P
Q
R
S
T
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES