00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GAMECONSTANTS_H
00017 #define GAMECONSTANTS_H
00018
00019
00020 #include <e32base.h>
00021 #include <in_sock.h>
00022
00023
00024 const TInt KMaxBufferSize = 128;
00025 const TInt KDeckLength = 49;
00026 const TInt KDeckBufferLength = KDeckLength*2;
00027 const TInt KCardLength = 2;
00028
00029 const TUint KGenericPort = 5123;
00030 const TUint32 KDealerIpAddr = INET_ADDR(11,11,11,1);
00031 const TInt KMaxSendTime=15000000;
00032 const TInt KMaxRecvTime=120000000;
00033
00034
00035 _LIT8(KClubs, "AC2C3C4C5C6C7C8C9C0CJCKC");
00036 _LIT8(KHearts, "AH2H3H4H5H6H7H8H9H0HJHKH");
00037 _LIT8(KSpades, "AS2S3S4S5S6S7S8S9S0SJSQSKS");
00038 _LIT8(KDiamonds, "AD2D3D4D5D6D7D8D9D0DJDKD");
00039
00040
00041
00042 enum TPlayerStatus
00043 {
00044 EWaiting = 0,
00045 EReceiving,
00046 ESending,
00047 EReceivedCard
00048 };
00049
00050
00051
00052 enum TGameStatus
00053 {
00054 EPlayingZero = 0,
00055 EPlayingOne,
00056 EPlayingTwo,
00057 EPlayingThree,
00058 EPlayingFour,
00059 EPlayingFive,
00060 EPlayingSix,
00061 EPlayingSeven,
00062 EFinishedZero,
00063 EFinishedOne,
00064 EFinishedTwo,
00065 EFinishedThree,
00066 EFinishedFour,
00067 EFinishedFive,
00068 EFinishedSix,
00069 EFinishedSeven,
00070 EGameStatusRequest,
00071 EReady,
00072 EReadyInquiry,
00073 EReadyForUpdate,
00074 EReadyForToken,
00075 EGameOver
00076 };
00077
00078 #endif // GAMECONSTANTS_H
00079
00080