#include <HandFinder.h>
|
| static auto | findHandsInVector (const std::vector< Card > &cardsVector) -> std::vector< PlayerHand > |
| | Takes in a line of cards, and returns every possible hand that was contributed to this turn.
|
|
| static auto | makePlayerHand (const std::vector< Card > &cardsVector, int startIndex) -> PlayerHand |
| | Goes through a vector and makes a playerHand from startIndex to 5 cards forward.
|
| static auto | makeRangedHand (const std::vector< Card > &cardsVector, int startIndex, int endIndex) -> PlayerHand |
| | Generates a hand from a card vector from the start index up to the end index.
|
◆ findHandsInVector()
| auto HandFinder::findHandsInVector |
( |
const std::vector< Card > & | cardsVector | ) |
->std::vector< PlayerHand > |
|
static |
Takes in a line of cards, and returns every possible hand that was contributed to this turn.
- Parameters
-
| cardsVector | a column or row of cards to check |
- Returns
- A vector of every possible hand on the board that was contributed to this turn
◆ makePlayerHand()
| auto HandFinder::makePlayerHand |
( |
const std::vector< Card > & | cardsVector, |
|
|
int | startIndex )->PlayerHand |
|
staticprivate |
Goes through a vector and makes a playerHand from startIndex to 5 cards forward.
- Parameters
-
| cardsVector | The vector which you want to make hands from |
| startIndex | The index where you want to start copying from |
- Returns
- The player hand it made
◆ makeRangedHand()
| auto HandFinder::makeRangedHand |
( |
const std::vector< Card > & | cardsVector, |
|
|
int | startIndex, |
|
|
int | endIndex )->PlayerHand |
|
staticprivate |
Generates a hand from a card vector from the start index up to the end index.
- Parameters
-
| cardsVector | The vector you want to go through |
| startIndex | Where you want to start copying. |
| endIndex | Where you want to stop copying. Does not copy at this value |
- Returns
- The player hand it made
The documentation for this class was generated from the following files:
- /home/egrazil/sites/Brunot/The House/source/Gameplay/Framework/HandFinder.h
- /home/egrazil/sites/Brunot/The House/source/Gameplay/Framework/HandFinder.cpp