add server launcher
This commit is contained in:
@@ -10,12 +10,7 @@ public class Server {
|
|||||||
private HashMap<String, Thread> gameThreads;
|
private HashMap<String, Thread> gameThreads;
|
||||||
public static final int PORT = 8000;
|
public static final int PORT = 8000;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public void start() {
|
||||||
Server server = new Server();
|
|
||||||
server.start();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void start() {
|
|
||||||
this.sessionController = new SessionController();
|
this.sessionController = new SessionController();
|
||||||
|
|
||||||
this.gameThreads = new HashMap<>();
|
this.gameThreads = new HashMap<>();
|
||||||
|
|||||||
8
core/src/netwerkprog/game/server/ServerLauncher.java
Normal file
8
core/src/netwerkprog/game/server/ServerLauncher.java
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package netwerkprog.game.server;
|
||||||
|
|
||||||
|
public class ServerLauncher {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Server server = new Server();
|
||||||
|
server.start();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user