Class LobbyInfo
java.lang.Object
it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
- All Implemented Interfaces:
Serializable
Information about a
Lobby
to be shared with clients- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
admin
-
ID
-
isPublic
private final boolean isPublic -
maxPlayers
private final int maxPlayers -
players
-
-
Constructor Details
-
LobbyInfo
Generate the lobby info- Parameters:
lobby
- the lobby to get the info of
-
-
Method Details
-
getAdmin
Get the admin nickname- Returns:
- the admin nickname
-
getID
Get the UUID of the Lobby- Returns:
- the UUID of the Lobby
-
isPublic
public boolean isPublic()Check if the Lobby is public- Returns:
- true if the lobby is public
-
getMaxPlayers
public int getMaxPlayers()Get the maximum amount of players allowed in the lobby- Returns:
- the max size of the lobby
-
getPlayers
Get connected player nicknames- Returns:
- an Unmodifiable
List
containing the connected players
-