Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

cardcount.h

Go to the documentation of this file.
00001 #ifndef _CARDCOUNT_INCLUDED
00002 #define _CARDCOUNT_INCLUDED
00003 
00004 #include <windows.h>
00005 
00006 #include "cardstack.h"
00007 
00008 class CardCount
00009 {
00010 public:
00011     CardCount();
00012     CardCount(const CardStack &cs);
00013 
00014     void Init(const CardStack &cs);
00015     void Clear();
00016     void Add(const CardStack &cs);
00017     void Sub(const CardStack &cs);
00018 
00019     void Dec(size_t index);
00020 
00021     int operator[] (size_t index) const;
00022 
00023     CardCount &operator =  (const CardStack &cs);
00024     CardCount &operator += (const CardStack &cs);
00025 
00026 private:
00027     int count[13];  //13 different card values
00028                     //(ace,2,3,4,5,6,7,8,9,10,J,Q,K)
00029 };
00030 
00031 #endif

Generated on Thu Feb 9 04:59:25 2012 for ReactOS by doxygen 1.6.3

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.