Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Lobby Class Reference

Lobby is a class which provides a simple, naive way of differentiating between the different clients connected to the server. It uses the ClientData struct to simplify packet communications between two players in a game. More...

#include <lobby.h>

Public Member Functions

bool IsComplete () const noexcept
 
void AddClient (const ClientData &client_data) noexcept
 
void Clear () noexcept
 

Public Attributes

ClientData client_data_1
 
ClientData client_data_2
 

Detailed Description

Lobby is a class which provides a simple, naive way of differentiating between the different clients connected to the server. It uses the ClientData struct to simplify packet communications between two players in a game.

Member Function Documentation

◆ AddClient()

void Lobby::AddClient ( const ClientData & client_data)
noexcept

◆ Clear()

void Lobby::Clear ( )
noexcept

◆ IsComplete()

bool Lobby::IsComplete ( ) const
noexcept

Member Data Documentation

◆ client_data_1

ClientData Lobby::client_data_1

◆ client_data_2

ClientData Lobby::client_data_2

The documentation for this class was generated from the following file: