Ejemplo n.º 1
0
        private void stopObserving(GameClient c, string tableId, bool disconnecting)
        {
            int tid;

            try {
                tid = int.Parse(tableId);
            } catch (Exception) {
                c.sendMessage(Message.BAD_MESSAGE);
                return;
            }
            if (tables.ContainsKey(tid))
            {
                GameTable t = tables[tid];
                t.removeObserver(c);
                c.stopObserving(tid);
                //c.joinLobby();
                //if (!disconnecting)
                //    alertJoinLobby(c);
            }
            else
            {
                c.sendMessage(Message.TBL_NOT_EXIST);
            }
        }
Ejemplo n.º 2
0
 private void stopObserving(GameClient c, string tableId, bool disconnecting)
 {
     int tid;
     try {
         tid = int.Parse(tableId);
     } catch (Exception) {
         c.sendMessage(Message.BAD_MESSAGE);
         return;
     }
     if (tables.ContainsKey(tid)) {
         GameTable t = tables[tid];
         t.removeObserver(c);
         c.stopObserving(tid);
         //c.joinLobby();
         //if (!disconnecting)
         //    alertJoinLobby(c);
     } else c.sendMessage(Message.TBL_NOT_EXIST);
 }