Package it.polimi.ingsw.server
Class Lobby
java.lang.Object
it.polimi.ingsw.server.Lobby
public class Lobby
extends java.lang.Object
Lets any newly connected clients join an existing game or create a new one.
-
Constructor Summary
Constructors Constructor Description Lobby() -
Method Summary
Modifier and Type Method Description voidallocateClient(java.net.Socket clientSocket)Allocates client to a game, or creates a new one if all games are full.
-
Constructor Details
-
Lobby
public Lobby()
-
-
Method Details
-
allocateClient
public void allocateClient(java.net.Socket clientSocket)Allocates client to a game, or creates a new one if all games are full.- Parameters:
clientSocket- client to allocate to a game.
-