Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
IntentJoinServerGame Class Reference

#include <intent_join_server_game.h>

Inheritance diagram for IntentJoinServerGame:
[legend]
Collaboration diagram for IntentJoinServerGame:
[legend]

Public Member Functions

 IntentJoinServerGame (TabSupervisor *_tabSupervisor, RemoteClient *_remoteClient, std::unique_ptr< ContextJoinGame > _context)
Public Member Functions inherited from Intent
 Intent (QObject *parent=nullptr)
 ~Intent () override
void execute ()

Protected Member Functions

bool checkPrecondition () const override
void onPreconditionSatisfied () override
void onPreconditionNotSatisfied () override
Protected Member Functions inherited from Intent
void runDependency (Intent *dependency)
void emitFinished ()
void emitFailed (const QString &reason)
void emitCancelled ()

Private Member Functions

bool tryJoinGame (TabRoom *room)
void waitForGame (TabRoom *room)

Private Attributes

TabSupervisor * tabSupervisor
RemoteClient * remoteClient
QScopedPointer< ContextJoinGame > context

Additional Inherited Members

Signals inherited from Intent
void finished ()
void failed (QString reason)
void cancelled ()

Constructor & Destructor Documentation

◆ IntentJoinServerGame()

IntentJoinServerGame::IntentJoinServerGame ( TabSupervisor * _tabSupervisor,
RemoteClient * _remoteClient,
std::unique_ptr< ContextJoinGame > _context )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ checkPrecondition()

bool IntentJoinServerGame::checkPrecondition ( ) const
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ onPreconditionNotSatisfied()

void IntentJoinServerGame::onPreconditionNotSatisfied ( )
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ onPreconditionSatisfied()

void IntentJoinServerGame::onPreconditionSatisfied ( )
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ tryJoinGame()

bool IntentJoinServerGame::tryJoinGame ( TabRoom * room)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ waitForGame()

void IntentJoinServerGame::waitForGame ( TabRoom * room)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ context

QScopedPointer<ContextJoinGame> IntentJoinServerGame::context
private

◆ remoteClient

RemoteClient* IntentJoinServerGame::remoteClient
private

◆ tabSupervisor

TabSupervisor* IntentJoinServerGame::tabSupervisor
private

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