Package de.nameless.gameEngine.luncher

Source Code of de.nameless.gameEngine.luncher.MPClientStarter

package de.nameless.gameEngine.luncher;


import java.io.IOException;

import javax.swing.JOptionPane;
import javax.swing.text.GapContent;

import de.nameless.gameEngine.core.NEClient;
import de.nameless.graphicEngine.NEGraphicServer;
import de.nameless.graphicEngine.model.NEMesh;
import de.nameless.graphicEngine.animation.lib.*;
import de.nameless.graphicEngine.lib.NEFireBall;

public class MPClientStarter
 
  public static final int port = 4011;
 
  public static String serverLocation = "scuzzar64";
 
  public static NEClient client; 
 
  public static void main(String[] args) throws IOException, InterruptedException {
   
    String name = JOptionPane.showInputDialog("Wie lautet dein nahme?");
   
    System.out.print("Connecting to " + serverLocation + ":" + port + "...................");
   
    client = new NEClient(name);
   
    client.connect(serverLocation, port);
   
    client.waitForGame();
   
    System.out.println("done")
   
    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {     
      e.printStackTrace();
    }
   
    System.out.print("setting up display..........................");
   
    client.PlugGfx(new NEGraphicServer());
   
    System.out.println("done")
   
           
  }
}
TOP

Related Classes of de.nameless.gameEngine.luncher.MPClientStarter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.