示例#1
0
 internal bool setClientReady(LobbyClient lc, bool readyP)
 {
     //Safety Check
     foreach (LobbyClient client in getListOfClients())
     {
         if (client.getLobbyClientGuid().CompareTo(lc.getLobbyClientGuid()) == 0)
         {
             client.setIfReadyToStart(readyP);
             return(true);
         }
     }
     return(false);
 }
示例#2
0
        /// <summary>
        /// Client calls connect to lobby to be assigned a Guid so it can join games
        /// </summary>
        /// <returns>Guid of client to be used in calls to service
        /// </returns>
        public Guid connectToLobby(string name)
        {
            LobbyClient newClient = setUpNewLobbyClient(name);

            return(newClient.getLobbyClientGuid());
        }
示例#3
0
 internal bool setClientReady(LobbyClient lc, bool readyP)
 {
     //Safety Check
     foreach (LobbyClient client in getListOfClients())
     {
         if (client.getLobbyClientGuid().CompareTo(lc.getLobbyClientGuid()) == 0)
         {
             client.setIfReadyToStart(readyP);
             return true;
         }
     }
     return false;
 }