File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
sdk/src/server-api/sc/networking/clients Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -223,12 +223,12 @@ public DisconnectCause getDisconnectCause() {
223
223
}
224
224
225
225
/**
226
- * Should be called when the client needs to be stopped and the disconnect
227
- * is initiated on this side. There are two situations where this should be
228
- * done:
226
+ * Should be called when the client needs to be stopped
227
+ * and the disconnect is initiated on this side.
228
+ * There are two situations where this should be done:
229
229
* <p>
230
230
* - A game has ended
231
- * - An internal error occurred (this situation might be redundant)
231
+ * - An error occurred
232
232
*/
233
233
public void stop () {
234
234
// this side caused disconnect, notify other side
Original file line number Diff line number Diff line change @@ -261,11 +261,9 @@ private void startIfReady() {
261
261
start ();
262
262
}
263
263
264
- /** If the Game is prepared, sync all slots. */
265
264
private synchronized void start () {
266
265
setStatus (GameStatus .ACTIVE );
267
266
this .game .start ();
268
-
269
267
logger .info ("Started {}" , game );
270
268
}
271
269
@@ -441,10 +439,7 @@ public boolean isOver() {
441
439
return getStatus () == GameStatus .OVER ;
442
440
}
443
441
444
- /**
445
- * Return whether or not the game is paused or will be paused in the next turn.
446
- * Refer to {@link AbstractGame#isPaused()} for the current value.
447
- */
442
+ /** Return whether or not the game is paused or will be paused in the next turn. */
448
443
public boolean isPauseRequested () {
449
444
return this .pauseRequested ;
450
445
}
Original file line number Diff line number Diff line change 21
21
import java .util .List ;
22
22
23
23
/**
24
- * A generic client. This represents a client in the server.
24
+ * Represents a client in the server.
25
25
*
26
26
* Clients which connect to the server (as separate programs or running as threads started by the server)
27
27
* are represented by {@link sc.networking.clients.LobbyClient}.
You can’t perform that action at this time.
0 commit comments