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
    void allocateClient​(java.net.Socket clientSocket)
    Allocates client to a game, or creates a new one if all games are full.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.