Cockatrice 2026-06-27-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ArrowRegistry Class Reference

#include <arrow_registry.h>

Public Member Functions

void insert (QSharedPointer< ArrowData > data, ArrowItem *arrow)
ArrowItemtake (int creatorId, int arrowId)
ArrowItemget (int creatorId, int arrowId) const
bool contains (int creatorId, int arrowId) const
QSet< int > idsForPlayer (int playerId) const
QList< ArrowItem * > all () const

Private Attributes

QMap< ArrowKey, QSharedPointer< ArrowData > > dataStore
QMap< ArrowKey, ArrowItem * > items
QMap< int, QSet< int > > byPlayer

Member Function Documentation

◆ all()

QList< ArrowItem * > ArrowRegistry::all ( ) const
nodiscard

◆ contains()

bool ArrowRegistry::contains ( int creatorId,
int arrowId ) const
nodiscard

◆ get()

ArrowItem * ArrowRegistry::get ( int creatorId,
int arrowId ) const
nodiscard

◆ idsForPlayer()

QSet< int > ArrowRegistry::idsForPlayer ( int playerId) const
nodiscard

◆ insert()

void ArrowRegistry::insert ( QSharedPointer< ArrowData > data,
ArrowItem * arrow )
Here is the call graph for this function:

◆ take()

ArrowItem * ArrowRegistry::take ( int creatorId,
int arrowId )
Here is the caller graph for this function:

Member Data Documentation

◆ byPlayer

QMap<int, QSet<int> > ArrowRegistry::byPlayer
private

◆ dataStore

QMap<ArrowKey, QSharedPointer<ArrowData> > ArrowRegistry::dataStore
private

◆ items

QMap<ArrowKey, ArrowItem *> ArrowRegistry::items
private

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