diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/gameconstants_8h-source.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/gameconstants_8h-source.html Tue Mar 30 11:56:28 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ - -
-00001 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). -00002 // All rights reserved. -00003 // This component and the accompanying materials are made available -00004 // under the terms of "Eclipse Public License v1.0" -00005 // which accompanies this distribution, and is available -00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". -00007 // -00008 // Initial Contributors: -00009 // Nokia Corporation - initial contribution. -00010 // -00011 // Contributors: -00012 // -00013 // Description: -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;// Is this used still? -00025 const TInt KDeckLength = 49; // Number of cards -00026 const TInt KDeckBufferLength = KDeckLength*2;// Length of deck descriptor for scabby queen -00027 const TInt KCardLength = 2; // Descriptor length of an individual card -00028 -00029 const TUint KGenericPort = 5123; // Random port for socket to bind to -00030 const TUint32 KDealerIpAddr = INET_ADDR(11,11,11,1);// IP address of scabby dealer -00031 const TInt KMaxSendTime=15000000; -00032 const TInt KMaxRecvTime=120000000; -00033 -00034 // The suits for scabby queen, omitting 3 queens -00035 _LIT8(KClubs, "AC2C3C4C5C6C7C8C9C0CJCKC"); -00036 _LIT8(KHearts, "AH2H3H4H5H6H7H8H9H0HJHKH"); -00037 _LIT8(KSpades, "AS2S3S4S5S6S7S8S9S0SJSQSKS"); -00038 _LIT8(KDiamonds, "AD2D3D4D5D6D7D8D9D0DJDKD"); -00039 -00040 -00041 // enum used by the dealer to inform a player of there state. -00042 enum TPlayerStatus -00043 { -00044 EWaiting = 0, -00045 EReceiving, -00046 ESending, -00047 EReceivedCard -00048 }; -00049 -00050 // This is the enum used to send the current status of a player -00051 // to the dealer. -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 -