sqlite-log: transmitting some functions to cardsValue for logging hole cards
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21,18 +21,18 @@
|
||||
#define CARDSVALUE_H
|
||||
|
||||
#include "game_defs.h"
|
||||
#include "arraydata.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include<vector>
|
||||
|
||||
#include "engine_defs.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
class CardsValue
|
||||
{
|
||||
public:
|
||||
static int holeCardsClass(int, int);
|
||||
static int cardsValue(int*, int*);
|
||||
static std::string determineHandName(int myCardsValueInt, PlayerList activePlayerList);
|
||||
static std::list<std::string> translateCardsValueCode(int cardsValueCode);
|
||||
|
||||
static int holeCardsToIntCode(int*);
|
||||
static int* intCodeToHoleCards(int);
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "localexception.h"
|
||||
#include "engine_msg.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
LocalBoard::LocalBoard(unsigned dp) : BoardInterface(), pot(0), sets(0), dealerPosition(dp), allInCondition(false), lastActionPlayer(0)
|
||||
{
|
||||
myCards[0] = myCards[1] = myCards[2] = myCards[3] = myCards[4] = 0;
|
||||
@@ -78,7 +76,7 @@ void LocalBoard::distributePot()
|
||||
PlayerListConstIterator it_c;
|
||||
|
||||
// filling player sets vector
|
||||
vector<unsigned> playerSets;
|
||||
std::vector<unsigned> playerSets;
|
||||
for(it=seatsList->begin(); it!=seatsList->end(); ++it) {
|
||||
if((*it)->getMyActiveStatus()) {
|
||||
playerSets.push_back( ( ((*it)->getMyRoundStartCash()) - ((*it)->getMyCash()) ) );
|
||||
@@ -89,11 +87,11 @@ void LocalBoard::distributePot()
|
||||
}
|
||||
|
||||
// sort player sets asc
|
||||
vector<unsigned> playerSetsSort = playerSets;
|
||||
std::vector<unsigned> playerSetsSort = playerSets;
|
||||
sort(playerSetsSort.begin(), playerSetsSort.end());
|
||||
|
||||
// potLevel[0] = amount, potLevel[1] = sum, potLevel[2..n] = winner
|
||||
vector<unsigned> potLevel;
|
||||
std::vector<unsigned> potLevel;
|
||||
|
||||
// temp var
|
||||
int highestCardsValue;
|
||||
|
||||
Reference in New Issue
Block a user