![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <player_graphics_item.h>
Public Types | |
| enum | { Type = typeOther } |
Public Slots | |
| void | onPlayerActiveChanged (bool _active) |
| void | onCustomZoneAdded (QString customZoneName) |
| void | onCounterAdded (CounterState *state) |
| void | onCounterRemoved (int counterId) |
| void | rearrangeCounters () |
| void | retranslateUi () |
Signals | |
| void | sizeChanged () |
| void | playerCountChanged () |
| void | mirroredChanged (bool isMirrored) |
| void | cardInfoRequested (const CardRef &cardRef) |
| void | playmatChanged (bool hasPlaymat) |
Public Member Functions | |
| int | type () const override |
| PlayerGraphicsItem (PlayerLogic *player) | |
| void | initializeZones () |
| QRectF | boundingRect () const override |
| qreal | getMinimumWidth () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| void | processSceneSizeChange (int newPlayerWidth) |
| void | setMirrored (bool _mirrored) |
| bool | getMirrored () const |
| GameScene * | getGameScene () const |
| PlayerLogic * | getLogic () const |
| PlayerMenu * | getPlayerMenu () const |
| PlayerArea * | getPlayerArea () const |
| PlayerTarget * | getPlayerTarget () const |
| CardZone * | getZoneGraphicsItem (const QString &name) const |
| PileZone * | getDeckZoneGraphicsItem () const |
| PileZone * | getSideboardZoneGraphicsItem () const |
| PileZone * | getGraveyardZoneGraphicsItem () const |
| PileZone * | getRfgZoneGraphicsItem () const |
| TableZone * | getTableZoneGraphicsItem () const |
| StackZone * | getStackZoneGraphicsItem () const |
| HandZone * | getHandZoneGraphicsItem () const |
Static Public Attributes | |
| static constexpr int | counterAreaWidth = 55 |
Private Slots | |
| void | updateBoundingRect () |
| void | rearrangeZones () |
| void | clearPlaymat () |
| void | updatePlaymat () |
| void | onPlaymatPixmapReady () |
Private Member Functions | |
| QPixmap | scaledPlaymatFor (const QRectF &srcRect, const QSizeF &deviceDstSize) |
Private Attributes | |
| PlayerLogic * | player |
| PlayerMenu * | playerMenu |
| PlayerDialogs * | playerDialogs |
| PlayerArea * | playerArea |
| PlayerTarget * | playerTarget |
| QMap< int, AbstractCounter * > | counterWidgets |
| QMap< QString, CardZone * > | zoneGraphicsItems |
| PileZone * | deckZoneGraphicsItem |
| PileZone * | sideboardGraphicsItem |
| PileZone * | graveyardZoneGraphicsItem |
| PileZone * | rfgZoneGraphicsItem |
| TableZone * | tableZoneGraphicsItem |
| StackZone * | stackZoneGraphicsItem |
| HandZone * | handZoneGraphicsItem |
| QRectF | bRect |
| bool | mirrored |
| bool | handVisible = false |
| QPixmap | playmatPixmap |
| QPixmap | scaledPlaymatPixmap |
| QSize | scaledPlaymatKey |
| PlaymatParams | playmatParams |
| QString | playmatAttribution |
| bool | hasPlaymat = false |
| QMetaObject::Connection | playmatPixmapConnection |
|
explicit |
|
nodiscardoverride |
|
signal |
|
privateslot |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
| qreal PlayerGraphicsItem::getMinimumWidth | ( | ) | const |
|
inline |
|
inline |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
| void PlayerGraphicsItem::initializeZones | ( | ) |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
privateslot |
|
override |
|
signal |
|
signal |
| void PlayerGraphicsItem::processSceneSizeChange | ( | int | newPlayerWidth | ) |
|
slot |
|
privateslot |
|
slot |
|
private |
| void PlayerGraphicsItem::setMirrored | ( | bool | _mirrored | ) |
|
signal |
|
inlineoverride |
|
privateslot |
|
privateslot |
|
private |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |