From 96992c5b03e8799b0edf2106d56da81094714102 Mon Sep 17 00:00:00 2001 From: Luca Puderbach Date: Mon, 14 Oct 2024 04:25:55 +0200 Subject: [PATCH] fixing server host --- .../src/main/java/pp/battleship/client/NetworkDialog.java | 8 +++++++- .../client/server/BattleshipSelfhostServer.java | 2 +- .../model/src/main/resources/battleship.properties | 1 + .../model/src/main/resources/battleship_de.properties | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Projekte/battleship/client/src/main/java/pp/battleship/client/NetworkDialog.java b/Projekte/battleship/client/src/main/java/pp/battleship/client/NetworkDialog.java index 8008024..68d2d04 100644 --- a/Projekte/battleship/client/src/main/java/pp/battleship/client/NetworkDialog.java +++ b/Projekte/battleship/client/src/main/java/pp/battleship/client/NetworkDialog.java @@ -1,3 +1,10 @@ +//////////////////////////////////////// +// Programming project code +// UniBw M, 2022, 2023, 2024 +// www.unibw.de/inf2 +// (c) Mark Minas (mark.minas@unibw.de) +//////////////////////////////////////// + package pp.battleship.client; import java.lang.System.Logger; @@ -165,4 +172,3 @@ class NetworkDialog extends SimpleDialog { serverThread.start(); } } - diff --git a/Projekte/battleship/client/src/main/java/pp/battleship/client/server/BattleshipSelfhostServer.java b/Projekte/battleship/client/src/main/java/pp/battleship/client/server/BattleshipSelfhostServer.java index 9114d73..e3eab1c 100644 --- a/Projekte/battleship/client/src/main/java/pp/battleship/client/server/BattleshipSelfhostServer.java +++ b/Projekte/battleship/client/src/main/java/pp/battleship/client/server/BattleshipSelfhostServer.java @@ -1,4 +1,4 @@ -//////////////////////////////////////// +/////////////////////////////////////// // Programming project code // UniBw M, 2022, 2023, 2024 // www.unibw.de/inf2 diff --git a/Projekte/battleship/model/src/main/resources/battleship.properties b/Projekte/battleship/model/src/main/resources/battleship.properties index d53bd28..30991df 100644 --- a/Projekte/battleship/model/src/main/resources/battleship.properties +++ b/Projekte/battleship/model/src/main/resources/battleship.properties @@ -39,3 +39,4 @@ port.must.be.integer=Port must be an integer number map.doesnt.fit=The map doesn't fit to this game menu.background-sound-enabled=Background music switched on client.server-start = Start server +server.host= Self-Host Game diff --git a/Projekte/battleship/model/src/main/resources/battleship_de.properties b/Projekte/battleship/model/src/main/resources/battleship_de.properties index c8c4788..085058b 100644 --- a/Projekte/battleship/model/src/main/resources/battleship_de.properties +++ b/Projekte/battleship/model/src/main/resources/battleship_de.properties @@ -39,3 +39,4 @@ port.must.be.integer=Der Port muss eine ganze Zahl sein map.doesnt.fit=Diese Karte passt nicht zu diesem Spiel menu.background-sound-enabled=Hintergrundmusik eingeschaltet client.server-start = Starte Server +server.host= Spiel selbst hosten \ No newline at end of file