0% found this document useful (0 votes)
80 views1 page

Assig 5 Phase 3 Uml

The document describes classes related to a card game framework including classes for the card game itself (CardGameFramework), hands of cards (Hand), a deck of cards (Deck), individual cards (Card), a GUI component for cards (GUICard), and a card table UI component (CardTable). It lists attributes like the number of players and cards per hand, and methods like playing a card, drawing from the deck, and determining the winner of a round.

Uploaded by

api-373837960
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views1 page

Assig 5 Phase 3 Uml

The document describes classes related to a card game framework including classes for the card game itself (CardGameFramework), hands of cards (Hand), a deck of cards (Deck), individual cards (Card), a GUI component for cards (GUICard), and a card table UI component (CardTable). It lists attributes like the number of players and cards per hand, and methods like playing a card, drawing from the deck, and determining the winner of a round.

Uploaded by

api-373837960
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CardGameFramework Assig5Phase3 GUICardListener

- MAX_PLAYERS : int + NUM_CARDS_PER_HAND : int + mouseClicked(MouseEvent) : void


- numPlayers : int + NUM_PLAYERS : int + mousePressed(MouseEvent) : void
- numPacks : int + computerLabels : JLabel[] + mouseReleased(MouseEvent) : void
- numJokersPerPack : int + humanLabels : JLabels[] + mouseEntered(MouseEvent) : void
- numUnusedCardsPerPack : int + playedCardLabels : JLabel[] + mouseExited(MouseEvent) : void
- numCardsPerHand : int + playLabelText : JLabel []
- deck : Deck - highCardGame : CardGameFramework
- hand : Hand[] - myCardTable : CardTable PlayAgainListener
- unusedCardsPerPack : Card[] - humanCardLabel : JLabel
- computerCardLabel : JLabel
+ actionPerformed(ActionEvent) : void
+ CardGameFramework(int,int,int,Card[],int,int) - playedHumanCard : Card
+ CardGameFramework() - playedComputerCard : Card
+ getHand(int) : Hand - humanWinnings : Card[]
+ getCardFromDeck() : Card - computerWinnings : Card[]
+ getNumCardsRemainingInDeck() : int - posHumanWinnings : int
+ newGame() : void - posComputerWinnings : int
+ deal() : boolean - humanCardText : JLabel
+ sortHands() : void - computerCardText : JLabel
+ playCard(int,int) : Card - gameStatus : JLabel
+ takeCard(int) : boolean - theGUICard : GUICard
- guiCardEar : GUICardListener
Hand
+ main(String[]) : void
+ playGUICard(JLabel) : void
- MAX_CARDS : int + playComputerGUICard() : void
- numCards : int + determineWinnerOfRound() : void
- myCards : Card[] + resetGame() : void
+ initPlayerPanels() : void
+ Hand() + initGamePlayPanel() : void
+ resetHand()
+ takeCard(Card) : boolean
+ playCard() : Card GUICard
+ playCard(int) : Card
+ toString() : String - iconCards : icon[][]
+ getNumCards() : int - iconBack : Icon
+ inspectCard(int) : Card Card
# iconsLoaded : boolean
+ sort() : void - HELD_VALUES : String[]
- value : char - HELD_SUITS : String[]
Deck - suit : Suit
- errorflag : boolean
+ valuRanks : char[] - loadCardIcons() : void
- PACK_SIZE : int - turnIntIntoCardValue(int) : String
+ MAX_CARDS : int - turnIntIntoCardSuit(int) : String
- masterPack : Card[] + Card(char,Suit) + GUICard()
- cards : Card[] + Card() + getIcon(Card) : Icon
- topCard : int + Card(Card) - valueAsInt(Card) : int
- numPacks : int + getValue() : char - suitAsInt(Card) : int
- cardMap : Hashtable <Card, Integer> + getSuit() : Suit + getBackCardIcon() : Icon
+ getErrorFlag() : boolean
+ Deck(int) + set(char,Suit) : boolean
+ Deck() + toString() : String
+ getTopCard() : int + equals(Card) : boolean
- allocateMasterPack() : void + equals(Object) : boolean
CardTable
+ init(int) : void + hashCode() : int
+ shuffle() : void + arraySort(Card[],int) : void
+ compareTo(Object) : int # MAX_CARDS_PER_HAND : int
+ dealCard() : Card
- isValid(char,Suit) : boolean # MAX_PLAYERS : int
+ toString() : String
- numCardsPerHand : int
+ addCard(Card) : boolean
- numPlayers : int
+ removeCard(Card) : boolean
<<enumeration>> + pnlComputerHand : JPanel
+ sort() : void
Suit + pnlHumanHand : JPanel
+ getNumCards() : int
+ pnlPlayArea : JPanel
clubs
diamonds
hearts + CardTable(String, int, int)
spades + getNumCardsPerHand() : int
+ getNumPlayers() : int

You might also like