Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Intent Class Referenceabstract

#include <intent.h>

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

Signals

void finished ()
void failed (QString reason)

Public Member Functions

 Intent (QObject *parent=nullptr)
 ~Intent () override
void execute ()

Protected Member Functions

virtual bool checkPrecondition () const =0
virtual void onPreconditionSatisfied ()=0
virtual void onPreconditionNotSatisfied ()=0
void runDependency (Intent *dependency)
void emitFinished ()
void emitFailed (const QString &reason)

Private Attributes

bool completed = false

Constructor & Destructor Documentation

◆ Intent()

Intent::Intent ( QObject * parent = nullptr)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Intent()

Intent::~Intent ( )
overridedefault

Member Function Documentation

◆ checkPrecondition()

virtual bool Intent::checkPrecondition ( ) const
protectedpure virtual

Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, and IntentWaitForDatabaseLoad.

Here is the caller graph for this function:

◆ emitFailed()

void Intent::emitFailed ( const QString & reason)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ emitFinished()

void Intent::emitFinished ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute()

void Intent::execute ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ failed

void Intent::failed ( QString reason)
signal
Here is the caller graph for this function:

◆ finished

void Intent::finished ( )
signal
Here is the caller graph for this function:

◆ onPreconditionNotSatisfied()

virtual void Intent::onPreconditionNotSatisfied ( )
protectedpure virtual

Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, and IntentWaitForDatabaseLoad.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onPreconditionSatisfied()

virtual void Intent::onPreconditionSatisfied ( )
protectedpure virtual

Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, and IntentWaitForDatabaseLoad.

Here is the caller graph for this function:

◆ runDependency()

void Intent::runDependency ( Intent * dependency)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ completed

bool Intent::completed = false
private

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