Action to end the lobby game. This will update the lobby status and inform everyone in the lobby that the game has ended.
Returns the position of the current player in the lobby. Return 0 if the player is not in the lobby. Returns 1, 2, 3, ... if the player is in the lobby.
Returns the player username of the current player in the lobby.
Returns the player username at the given number in the lobby. The number is shifted by one, so that the first player has number 1.
Returns the number of players in the lobby.
When the game receives the information that the game has ended, set the flag to true, so that the game can switch back to the main menu for instance.
Returns true if the game has just ended, useful to switch back to to the main menu.
Returns true if the game has just started, useful to switch to the game scene.
Condition to check if the window is open, so that the game can be paused in the background.
Returns true if the player at this position is connected to the lobby.
Returns true if the player is the host in the lobby. Here, player 1.
Action to allow the player to leave the lobby in-game.
When the first heartbeat is received, we consider the connection to the host as working, we inform the backend services that the connection is ready, so it can start the game when everyone is ready.
Action to display the lobbies window to the user.
Remove the container displaying the lobbies window and the callback.
Generated using TypeDoc
Set to true in testing to avoid relying on the multiplayer extension.