Пример #1
0
 public static boolean login(String userId, String password) {
   if (clientMap
       .keySet()
       .contains(
           userId)) { // Check if is already logged in and the user client was added to the map. If
     // client was added to the map, simply return loginTCG.
     return loginTCG(userId, password);
   } else {
     boolean logged = loginDarkstar(userId, password);
     System.out.println("User " + userId + " is logged? " + logged);
     if (logged) {
       getPlayerInitData(userId);
       loadLoginSequence(userId);
     }
     return logged;
   }
 }