Files Classes Functions Hierarchy
00001 #ifndef HAND_H 00002 #define HAND_H 00003 00004 typedef unsigned int uint; 00005 typedef unsigned int const uintc; 00006 00007 /* 00008 \brief Holding cards and their value and operations. 00009 00010 Since both dealers and players have hands the hand is 00011 its own object with its own perspective. 00012 */ 00013 class hand 00014 { 00015 public: 00016 00018 uintc calculate() const; 00019 00021 void add(uintc card); 00022 00024 uint value; 00025 00027 bool hasAce; 00028 00030 bool const isbusted() const; 00031 00033 void reset(); 00034 00036 void reset(uintc card); 00037 00038 }; 00039 00040 00041 #endif 00042 00043
1.5.8