Removing several unnecessary allocations.

This commit is contained in:
lotodore
2011-02-28 22:05:44 +00:00
parent a87a12e8b0
commit 6f290be894
9 changed files with 35 additions and 76 deletions
+6 -10
View File
@@ -31,18 +31,14 @@
class CardsValue
{
public:
CardsValue();
static int holeCardsClass(int, int);
static int cardsValue(int*, int*);
~CardsValue();
static int holeCardsToIntCode(int*);
static int* intCodeToHoleCards(int);
int holeCardsClass(int, int) const;
int cardsValue(int*, int*) const;
int holeCardsToIntCode(int*) const;
int* intCodeToHoleCards(int) const;
std::vector< std::vector<int> > calcCardsChance(GameState, int*, int*) const;
//int** showdown(GameState, int**, int);
static std::vector< std::vector<int> > calcCardsChance(GameState, int*, int*);
//static int** showdown(GameState, int**, int);
};