00001 #ifndef FCS_CARD_H 00002 #define FCS_CARD_H 00003 00011 00012 #include "FCEnums.h" 00013 00019 class FCSCard 00020 { 00021 public: 00025 static FCSCard* Create(); 00026 00031 void User2Perl(const char *String); 00032 00039 char* Perl2User(char* String, int Display10AsT, bool DisplayDebug); 00040 00051 static char* Perl2UserCardNumber(int Number, char* String, bool *CardNumberIsNull, 00052 int Display10AsT, int Flipped, bool DisplayDebug); 00053 00063 char* Perl2UserSuit(int Suit, char* String, bool *CardNumberIsNull, int Flipped, 00064 bool DisplayDebug); 00065 00070 static int User2PerlCardNumber(const char* String); 00071 00077 static int User2PerlSuit(const char* String); 00078 00082 virtual void Copy(FCSCard* Card) = 0; 00083 00088 int Compare(FCSCard* Card); 00089 00091 virtual void EmptyCard() = 0; 00092 00094 virtual bool IsEmptyCard() = 0; 00095 00099 virtual char GetCardNumber() = 0; 00100 00104 virtual char GetSuit() = 0; 00105 00109 virtual char GetFlipped() = 0; 00110 00114 virtual void SetSuit(char Suit) = 0; 00115 00119 virtual void SetCardNumber(char CardNumber) = 0; 00120 00124 virtual void SetFlipped(char Flipped) = 0; 00125 00129 virtual int GetClassSize() = 0; 00130 00131 protected: 00132 00137 int User2PerlFlippedStatus(const char * String); 00138 }; 00139 00140 #endif