Added skeleton for Server Connection structure changes.

Added Data and Event classes for Data saving on the server.
Added DataParser class for translating requests to data.
Added ServerData package
This commit is contained in:
MickWerf
2020-05-18 14:09:48 +02:00
parent 7969746bc1
commit 8dee45a844
8 changed files with 56 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
package netwerkprog.game.client;
import netwerkprog.game.util.Controller;
import netwerkprog.game.util.ServerData;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -16,8 +17,8 @@ public class Client extends Controller {
public Client(String hostname, int port) {
this.port = port;
public Client(String hostname) {
this.port = ServerData.port();
this.hostname = hostname;
}