tried to implement build-cs108 task
This commit is contained in:
@@ -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!";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user