add server launcher

This commit is contained in:
Sem van der Hoeven
2020-05-14 20:35:36 +02:00
parent 017a590618
commit 9b893a4294
2 changed files with 9 additions and 6 deletions

View File

@@ -10,12 +10,7 @@ public class Server {
private HashMap<String, Thread> gameThreads;
public static final int PORT = 8000;
public static void main(String[] args) {
Server server = new Server();
server.start();
}
private void start() {
public void start() {
this.sessionController = new SessionController();
this.gameThreads = new HashMap<>();

View File

@@ -0,0 +1,8 @@
package netwerkprog.game.server;
public class ServerLauncher {
public static void main(String[] args) {
Server server = new Server();
server.start();
}
}