diff --git a/Meilenstein V/Protocol.txt b/Meilenstein V/Protocol.txt index 95dfae9..d20bece 100644 --- a/Meilenstein V/Protocol.txt +++ b/Meilenstein V/Protocol.txt @@ -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" diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/helpers/Protocol.java b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/helpers/Protocol.java index 964c447..808e1a1 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/helpers/Protocol.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/helpers/Protocol.java @@ -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";