Slight adjustment to the documentation of the vote request commands in protocol

This commit is contained in:
Seraina 2022-05-18 16:10:30 +02:00
parent e062b526e6
commit b375dbc1a3
2 changed files with 13 additions and 7 deletions

View File

@ -160,15 +160,17 @@ serverConfirmQuit = "QUITC"
serverRequestsGhostVote = "GVOTR"
GVOTR$passenger position (int)$train information
The server requests the client (who should be a ghost) to vote on the victim.
GVOTR$passenger position (int)$
The server requests the client (who should be a ghost) to vote on the victim, it delivers the position of the passenger
representing the client in the game with it so the client knows its own position. The position can be 0-5
serverRequestsHumanVote = "HVOTR"
HVOTR$passenger position (int)$train information
HVOTR$passenger position (int)$
The server requests the client (who should be a human) to vote on who is a ghost / who should be kicked
off the train.
off the train, it delivers the position of the passenger
representing the client in the game with it so the client knows its own position. The position can be 0-5
changedUserName = "CHNAM"

View File

@ -187,15 +187,19 @@ public class Protocol {
public static final String serverConfirmQuit = "QUITC";
/**
* The server requests the client (who should be a ghost) to vote on the victim. in the format
* {@code GVOTR$passenger position (int)$train information}
* the current train will be shown as a string to the client
* The server requests the client (who should be a ghost) to vote on the victim in the format
* {@code GVOTR$passenger position (int)}
* It delivers the position of the passenger
* representing the client in the game with it so the client knows its own position. The position can be 0-5the current train will be shown as a string to the client
*/
public static final String serverRequestsGhostVote = "GVOTR";
/**
* The server requests the client (who should be a human) to vote on who is a ghost /
* who should be kicked off the train.
* {@code HVOTR$passenger position (int)}
* it delivers the position of the passenger
* representing the client in the game with it so the client knows its own position. The position can be 0-5
*/
public static final String serverRequestsHumanVote = "HVOTR";