#include <HandRating.h>
|
| static auto | straightCheck (const PlayerHand &cards) -> bool |
| | Analyzes a given hand and determines if it contains a straight or not.
|
| static auto | flushCheck (const PlayerHand &cards) -> bool |
| | Analyzes a given hand and determines if it contains a flush or not.
|
| static auto | sameRankCheck (const PlayerHand &cards) -> CategorizedHand |
| | Checks how many cards have the same rank and determines the best HandType available.
|
| static auto | checkContribution (const std::vector< Card >::const_iterator &begin, const std::vector< Card >::const_iterator &end) -> bool |
| | Checks if the current player contributed to the hand (if a card in it was played this turn).
|
◆ HandType
| Enumerator |
|---|
| straight_flush | |
| quads | |
| full_house | |
| flush | |
| straight | |
| trips | |
| two_pair | |
| pair | |
| high_card | |
| nothing | |
◆ checkContribution()
| auto HandRating::checkContribution |
( |
const std::vector< Card >::const_iterator & | begin, |
|
|
const std::vector< Card >::const_iterator & | end )->bool |
|
staticprivate |
Checks if the current player contributed to the hand (if a card in it was played this turn).
- Parameters
-
| begin | The start of the hand we want to check |
| end | One past the end of the hand we want to check |
- Returns
- If a single card in the range was played this turn
◆ checkHand()
Analyzes a given hand and determines what kind of HandType it is worth.
- Returns
- a struct that contains the HandType and the cards that contribute to it
◆ CheckHands()
Analyzes a given vector of hands and determines what kind of HandType it is worth.
- Returns
- a vector of categorized hands
◆ flushCheck()
| auto HandRating::flushCheck |
( |
const PlayerHand & | cards | ) |
->bool |
|
staticprivate |
Analyzes a given hand and determines if it contains a flush or not.
- Parameters
-
| cards | The hand you want to be analyzed |
- Returns
- If the hand contains a flush
◆ getValueOfHandType()
| auto HandRating::getValueOfHandType |
( |
HandType | handType | ) |
->int |
|
static |
◆ sameRankCheck()
Checks how many cards have the same rank and determines the best HandType available.
◆ Sort()
| auto HandRating::Sort |
( |
PlayerHand & | cards | ) |
->void |
|
static |
Sorts the cards in a player hand into ascending order.
- Parameters
-
| cards | The hand you want to be sorted |
◆ straightCheck()
| auto HandRating::straightCheck |
( |
const PlayerHand & | cards | ) |
->bool |
|
staticprivate |
Analyzes a given hand and determines if it contains a straight or not.
- Parameters
-
| cards | The hand you want to be analyzed |
- Returns
- If the hand contains a straight
The documentation for this class was generated from the following files:
- /home/egrazil/sites/Brunot/The House/source/Gameplay/Framework/HandRating.h
- /home/egrazil/sites/Brunot/The House/source/Gameplay/Framework/HandRating.cpp