#include <CategorizedHand.h>
◆ CategorizedHand() [1/3]
| CategorizedHand::CategorizedHand |
( |
| ) |
|
|
default |
◆ CategorizedHand() [2/3]
◆ CategorizedHand() [3/3]
| CategorizedHand::CategorizedHand |
( |
HandRating::HandType | type, |
|
|
const std::vector< Card * > & | cards, |
|
|
bool | isVertical, |
|
|
bool | isHorizontal ) |
◆ addCard()
| auto CategorizedHand::addCard |
( |
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"
◆ getContributingCards()
| auto CategorizedHand::getContributingCards |
( |
| ) |
const->conststd::vector< Card * > & |
◆ getFullHand()
| auto CategorizedHand::getFullHand |
( |
| ) |
const->conststd::vector< Card * > & |
◆ getScore()
| auto CategorizedHand::getScore |
( |
| ) |
const->int |
◆ getSum()
| auto CategorizedHand::getSum |
( |
| ) |
const->int |
◆ getType()
◆ getVertical()
| auto CategorizedHand::getVertical |
( |
| ) |
const->bool |
◆ operator<()
| auto CategorizedHand::operator< |
( |
const CategorizedHand & | other | ) |
const->bool |
Comparison operator for sorting against other CategorizedHands.
◆ 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
-
◆ setFullHand()
| auto CategorizedHand::setFullHand |
( |
const std::vector< Card * > & | newCards | ) |
->void |
Sets the full hand cards.
- Parameters
-
◆ setHandType()
◆ setVertical()
| auto CategorizedHand::setVertical |
( |
bool | isVertical | ) |
->void |
◆ fullHand
| std::vector<Card*> CategorizedHand::fullHand |
|
private |
All the cards in the players hand.
◆ importantCards
| std::vector<Card*> CategorizedHand::importantCards |
|
private |
The cards in the hand that contribute to the score.
◆ typeOfHand
The specific poker hand that the hand is worth.
◆ vertical
| bool CategorizedHand::vertical = false |
|
private |
If the current hand is vertical on the board or not.
The documentation for this struct was generated from the following files: