[LWIP] Fix src/core/init.c a bit (#1620)
[reactos.git] / sdk / lib / 3rdparty / cardlib / cardcount.h
1 #ifndef _CARDCOUNT_INCLUDED
2 #define _CARDCOUNT_INCLUDED
3
4 class CardCount
5 {
6 public:
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
19 CardCount &operator = (const CardStack &cs);
20 CardCount &operator += (const CardStack &cs);
21
22 private:
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 */