tried to implement build-cs108 task

This commit is contained in:
Jonas
2022-04-17 20:07:15 +02:00
parent cee7196566
commit bf31670ec1
3 changed files with 22 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ package ch.unibas.dmi.dbis.cs108.gamelogic;
import ch.unibas.dmi.dbis.cs108.gamelogic.klassenstruktur.Passenger;
/**
* Handles all communication Client to Server concerning games tate updates i.e. client a has voted
* Handles all communication Client to Server concerning gamestate updates i.e. client a has voted
* Maybe unnecessary, everything that is needed might already be implemented in ClientHandler.
* We might only need to extend the protocol and its parser.
*/
@@ -12,7 +12,7 @@ public class ClientGameInfoHandler {
/**
* All messages that are used in VoteHandler
* TODO(Seraina&Alex): Adjust strings to be more meaningful
* TODO(Seraina-Alex): Adjust strings to be more meaningful
*/
//relevant:
public static final String ghostVoteRequest = "Vote on who to ghostify!";

View File

@@ -57,7 +57,7 @@ public class Protocol {
* will use the clientHandler.setUsernameOnLogin() method to set this client's username to Poirot,
* and broadcast the announcement: {@code "Poirot has joined the Server"}. Also, it will set this
* clientHandler's loggedIn boolean to true, which could be used later to refuse access to users
* who haven't formally logged in using this command => //todo: shun non-logged-in users
* who haven't formally logged in using this command //todo: shun non-logged-in users
*/
public static final String clientLogin = "LOGIN";