#include <CategorizedHand.h>
◆ CategorizedHand() [1/2]
| CategorizedHand::CategorizedHand |
( |
| ) |
|
|
default |
◆ CategorizedHand() [2/2]
◆ addCard()
| auto CategorizedHand::addCard |
( |
const Card & | newCard | ) |
->void |
Pushes back a new card into the card vector.
- Parameters
-
| newCard | The card you want to add to the hand |
◆ getAsString()
| auto CategorizedHand::getAsString |
( |
| ) |
const->std::string |
Constructs a string that represents the data in the hand.
- Returns
- A string in the format of "hand of type [Type] that was worth [Score] points"
◆ getCards()
| auto CategorizedHand::getCards |
( |
| ) |
const->conststd::vector< Card > & |
◆ getScore()
| auto CategorizedHand::getScore |
( |
| ) |
const->int |
◆ getSum()
| auto CategorizedHand::getSum |
( |
| ) |
const->int |
◆ getType()
◆ printCards()
| auto CategorizedHand::printCards |
( |
| ) |
const->void |
Prints out all the cards that comprise the hand in the log.
◆ setCards()
| auto CategorizedHand::setCards |
( |
const std::vector< Card > & | newCards | ) |
->void |
Sets the entire card vector at once.
- Parameters
-
◆ setHandType()
◆ importantCards
| std::vector<Card> CategorizedHand::importantCards |
|
private |
◆ typeOfHand
The documentation for this struct was generated from the following files: