Starting rework of client request protocol to allow multiplayer
This commit is contained in:
@@ -92,6 +92,16 @@ public class Client {
|
||||
return isClientOne;
|
||||
}
|
||||
|
||||
public String getGameState(){
|
||||
try {
|
||||
out.writeUTF("gameState");
|
||||
return this.getResponse();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "---------";
|
||||
}
|
||||
|
||||
public boolean getServerType(){
|
||||
this.sendToServer("serverType");
|
||||
boolean serverType = this.getBooleanResponse("isSingleServer");
|
||||
|
||||
Reference in New Issue
Block a user