Added a few Methods and test Version control.

This commit is contained in:
Richard Reiber 2021-05-05 12:10:51 +02:00
parent 074276e664
commit f471b66eb6

View File

@ -1,4 +1,69 @@
package uulm.teamname.marvelous.server.Lobby;
public class Lobby {
String gameID;
GameState state;
public void recieveEvents(Request[] requests){
//Get Messages from the LobbyManager
}
public void sendEvents(Event[] events){
//Send Messages to the LobbyManager
}
public void processEvents(){
//The largest Block to handle all possible Events
//To defuse this Method you could use the smaller Methods below.
}
public void pause(){
}
public void unpause(){
}
public void handleDisconnects(){
}
public void validateRequest(){
}
public void applyRequestToGamestate(){
}
public void generateEvents(){
}
public void saidEvents(){
}
public void DisconnectClient(){
}
public void checkCheating(){
}
public void SendGamestate(){
}
public void handleConnects(){
}
public void handleSpectators(){
}
public void handlePlayers(){
}
public void handleLogon(){
}
public void handleLogoff(){
}
public void closeLobby(){
}
}