Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
game_link.h File Reference

Builds cockatrice://joingame links that let another user join a server game. More...

#include <QString>
Include dependency graph for game_link.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GameInviteOption

Functions

QString makeGameJoinLink (const QString &hostname, int port, int roomId, int gameId, const QString &description=QString())

Detailed Description

Builds cockatrice://joingame links that let another user join a server game.

Function Documentation

◆ makeGameJoinLink()

QString makeGameJoinLink ( const QString & hostname,
int port,
int roomId,
int gameId,
const QString & description = QString() )

Builds a cockatrice://joingame link for the given server game. The receiver's client opens it through the intent chain (connect -> join room -> join game). description, when non-empty, is embedded in the link as the URL-encoded "game" query item so the receiving client can name the game in its confirm prompt and chat anchor instead of only its numeric id. Links built without it stay valid: the parser and chat renderer fall back to the id alone.

Here is the caller graph for this function: