Main Page | Modules | Class List | File List | Class Members | File Members

# LobbyDefines.h

    00001 /***SDOC*******************************************************************************************
    00002  *                                UbiSoft Network Development
    00003  *                                ---------------------------
    00004  *
    00005  * FILE........: LobbyDefines.h
    00006  * CREATION....: October 2001
    00007  * AUTHOR......: GS Dev
    00008  *
    00009  * DESCRIPTION.: Miscelleanous definitions for the Lobby server
    00010  *
    00011  ******************************************************************************************EDOC***/
    00012 #ifndef __LOBBYDEFINES_H__
    00013 #define __LOBBYDEFINES_H__
    00014
    00015 #include "GSTypes.h"
    00016
    00017
    00018 //-------------------- Group Type ------------------------------
    00019 //             Constant                      ---->     Name in gslobbyserver.conf
    00020 const GSushort LOBBY                          = 0;  //"LOBBY"
    00021 const GSushort ROOM_DIRECTPLAY_CLIENTSERVER   = 1;  //"DIRECTPLAY_CLIENTSERVER"
    00022 const GSushort ROOM_DIRECTPLAY_P2P            = 2;  //"DIRECTPLAY_P2P"
    00023 const GSushort ROOM_HYBRID                    = 3;  //"HYBRID"
    00024 const GSushort ROOM_HYBRID_REGSERVER          = 4;  //"HYBRID_REGSERVER"
    00025 const GSushort ROOM_UBI_CLIENTHOST            = 5;  //"UBI_CLIENTHOST"
    00026 const GSushort ROOM_UBI_CLIENTHOST_REGSERVER  = 6;  //"UBI_CLIENTHOST_REGSERVER"
    00027 const GSushort ROOM_UBI_P2P                   = 7;  //"UBI_P2P"
    00028 const GSushort ROOM_UBI_GAMESERVER            = 8;  //"UBI_GAMESERVER"
    00029 const GSushort ROOM_UBI_GAMESERVER_REGSERVER  = 9;  //"UBI_GAMESERVER_REGSERVER"
    00030 const GSushort ROOM_REGSERVER                 = 10; //"REGISTER_SERVER"
    00031
    00032 //------------------------ Group and Game Masks  ------------------------------
    00033 const GSuint LSM_PRIVATE                    = 1 << 0;   //The group is protected by a password
    00034 const GSuint LSM_NEEDMASTER                 = 1 << 1;   //The group need a master
    00035 const GSuint LSM_ETERNEL                    = 1 << 2;   //The group is eternel ie when no player is on the group it is not deleted
    00036 const GSuint LSM_ACTIVE                     = 1 << 3;   //The game is started
    00037 const GSuint LSM_OPEN                       = 1 << 4;   //The group is open
    00038 const GSuint LSM_STARTABLE                  = 1 << 5;   //The group can be started
    00039 const GSuint LSM_MATCHACTIVE                = 1 << 12;  //The match is started
    00040
    00041 const GSuint LSM_CREATE_SUBLOBBY            = 1 << 9;   //Allow to create sublobby
    00042 const GSuint LSM_OPEN_WHEN_ACTIVE           = 1 << 10;  //When the game is started the group is still open
    00043 const GSuint LSM_SCORES_SUBMISSION          = 1 << 11;  //Allow score submission
    00044 const GSuint LSM_DEDICATEDSERVER            = 1 << 14;  //The group represent a dedicated server
    00045 const GSuint LSM_REGISTERSERVER             = 1 << 13;
    00046 const GSuint LSM_JOINRULE                   = 1 << 15;  //The access to the group is protected by a rule ( use with passport )
    00047 const GSuint LSM_CREATERULE                 = 1 << 16;  //The group caretion is restricted by a rule ( use with passport )
    00048
    00049
    00050 //--------------- Join info Masks ----------------------------------------------------
    00051 const GSuint LSM_GROUPINFO                  = 1 << 6;   //Get the group info
    00052 const GSuint LSM_GROUPMEMBERS               = 1 << 7;   //Get the group members
    00053 const GSuint LSM_CHILDGROUPINFO             = 1 << 8;   //Get the childs group info
    00054
    00055 const GSuint LSM_ALLINFO                    = LSM_GROUPINFO | LSM_GROUPMEMBERS | LSM_CHILDGROUPINFO;
    00056
    00057 //------------------- Player Status ----------------------------
    00058 const GSushort PS_SILENT                    = 1 << 0;   //The player is limited ( doesn't access to chat, page, etc ... )
    00059 const GSushort PS_GAMECONNECTED             = 1 << 1;   //The player is playing a game
    00060 const GSushort PS_GAMEREADY                 = 1 << 2;   //not implemented yet
    00061 const GSushort PS_MATCHREADY                = 1 << 3;   //not implemented yet
    00062 const GSushort PS_MATCHPLAYING              = 1 << 4;   //The player is playing a match
    00063
    00064 //-------------------- error messages  -------------------------
    00065 const GSushort    ERRORLOBBYSRV_UNKNOWNERROR                    = 0;
    00066 const GSushort    ERRORLOBBYSRV_GROUPNOTEXIST                   = 1;
    00067 const GSushort    ERRORLOBBYSRV_GAMENOTALLOWED                  = 2;
    00068 const GSushort    ERRORLOBBYSRV_SPECTATORNOTALLOWED             = 4;
    00069 const GSushort    ERRORLOBBYSRV_NOMOREPLAYERS                   = 5;
    00070 const GSushort    ERRORLOBBYSRV_NOMORESPECTATORS                = 6;
    00071 const GSushort    ERRORLOBBYSRV_NOMOREMEMBERS                   = 7;
    00072 const GSushort    ERRORLOBBYSRV_MEMBERNOTREGISTERED             = 8;
    00073 const GSushort    ERRORLOBBYSRV_GAMEINPROGRESS                  = 9;
    00074 const GSushort    ERRORLOBBYSRV_WRONGGAMEVERSION                = 10;
    00075 const GSushort    ERRORLOBBYSRV_PASSWORDNOTCORRECT              = 11;
    00076 const GSushort    ERRORLOBBYSRV_ALREADYINGROUP                  = 12;
    00077 const GSushort    ERRORLOBBYSRV_NOTMASTER                       = 13;
    00078 const GSushort    ERRORLOBBYSRV_NOTINGROUP                      = 14;
    00079 const GSushort    ERRORLOBBYSRV_MINPLAYERSNOTREACH              = 15;
    00080 const GSushort    ERRORLOBBYSRV_CONNECTADDCONNECTION            = 16;
    00081 const GSushort    ERRORLOBBYSRV_CONNECTSENDLOGINMSG             = 17;
    00082 const GSushort    ERRORLOBBYSRV_ERRORLOGINMESSAGE               = 18;
    00083 const GSushort    ERRORLOBBYSRV_NOHOSTLOBBYSERVER               = 19;
    00084 const GSushort    ERRORLOBBYSRV_LOBBYSRVDISCONNECTED            = 20;
    00085 const GSushort    ERRORLOBBYSRV_INVALIDGROUPNAME                = 21;
    00086 const GSushort    ERRORLOBBYSRV_INVALIDGAMETYPE                 = 22;
    00087 const GSushort    ERRORLOBBYSRV_NOMOREGAMEMODULE                = 23;
    00088 const GSushort    ERRORLOBBYSRV_CREATENOTALLOWED                = 24;
    00089 const GSushort    ERRORLOBBYSRV_GROUPCLOSE                      = 25;
    00090 const GSushort    ERRORLOBBYSRV_WRONGGROUPTYPE                  = 26;
    00091 const GSushort    ERRORLOBBYSRV_MEMBERNOTFOUND                  = 27;
    00092 const GSushort    ERRORLOBBYSRV_MATCHNOTEXIST                   = 30;
    00093 const GSushort    ERRORLOBBYSRV_MATCHNOTFINISHED                = 31;
    00094 const GSushort    ERRORLOBBYSRV_GAMENOTINITIATED                = 32;
    00095 const GSushort    ERRORLOBBYSRV_BEGINALREADYDONE                = 33;
    00096 const GSushort    ERRORLOBBYSRV_MATCHALREADYFINISHEDFORYOU      = 34;
    00097 const GSushort    ERRORLOBBYSRV_MATCHSCORESSUBMISSIONEVENTFAIL  = 35;
    00098 const GSushort    ERRORLOBBYSRV_MATCHSCORESSUBMISSIONALREDYSENT = 36;
    00099 const GSushort    ERRORLOBBYSRV_MATCHRESULTSPROCESSNOTFINISHED  = 37;
    00100 const GSushort    ERRORLOBBYSRV_MEMBERBANNED                    = 38;
    00101 const GSushort    ERRORLOBBYSRV_PASSPORTFAIL                    = 39;
    00102 const GSushort    ERRORLOBBYSRV_NOTCREATOR                      = 40;
    00103 const GSushort    ERRORLOBBYSRV_GAMENOTFINISHED                 = 41;
    00104 const GSushort    ERRORLOBBYSRV_PASSPORTTIMEOUT                 = 42;
    00105 const GSushort    ERRORLOBBYSRV_PASSPORTNOTFOUND                = 43;
    00106 const GSushort    ERRORLOBBYSRV_GROUPALREADYEXIST               = 44;
    00107
    00108 #endif
    00109

Ubi.com GameService SDK - ©UbiSoft Entertainment 2002
GameService development team