Exemplo n.º 1
0
  public LaunchMudClient startClient() {
    LaunchMudClient client = new LaunchMudClient();
    Thread clientThread = new Thread(client);
    clientThread.start();

    return client;
  }
Exemplo n.º 2
0
 public void startServer() {
   Thread serverThread = new Thread(new LaunchMudRunnable());
   serverThread.start();
   try {
     Thread.sleep(200); // Give server time to come up.
   } catch (InterruptedException e) {
     e.printStackTrace();
   }
 }