ReactOS 0.4.15-dev-7953-g1f49173
cardcount.h
Go to the documentation of this file.
1#ifndef _CARDCOUNT_INCLUDED
2#define _CARDCOUNT_INCLUDED
3
5{
6public:
7 CardCount();
8 CardCount(const CardStack &cs);
9
10 void Init(const CardStack &cs);
11 void Clear();
12 void Add(const CardStack &cs);
13 void Sub(const CardStack &cs);
14
15 void Dec(size_t index);
16
17 int operator[] (size_t index) const;
18
21
22private:
23 int count[13]; //13 different card values
24 //(ace,2,3,4,5,6,7,8,9,10,J,Q,K)
25};
26
27#endif /* _CARDCOUNT_INCLUDED */
void Dec(size_t index)
Definition: cardcount.cpp:82
void Sub(const CardStack &cs)
Definition: cardcount.cpp:52
void Clear()
Definition: cardcount.cpp:35
int operator[](size_t index) const
Definition: cardcount.cpp:70
CardCount & operator+=(const CardStack &cs)
void Add(const CardStack &cs)
Definition: cardcount.cpp:41
CardCount & operator=(const CardStack &cs)
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint index
Definition: glext.h:6031
#define cs
Definition: i386-dis.c:442