Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PlayerGraphicsItem Class Reference

#include <player_graphics_item.h>

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

Public Types

enum  { Type = typeOther }

Public Slots

void onPlayerActiveChanged (bool _active)
void retranslateUi ()

Signals

void sizeChanged ()
void playerCountChanged ()

Public Member Functions

int type () const override
 PlayerGraphicsItem (Player *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
GameScenegetGameScene () const
PlayergetPlayer () const
PlayerAreagetPlayerArea () const
PlayerTargetgetPlayerTarget () const
PileZonegetDeckZoneGraphicsItem () const
PileZonegetSideboardZoneGraphicsItem () const
PileZonegetGraveyardZoneGraphicsItem () const
PileZonegetRfgZoneGraphicsItem () const
TableZonegetTableZoneGraphicsItem () const
StackZonegetStackZoneGraphicsItem () const
HandZonegetHandZoneGraphicsItem () const

Static Public Attributes

static constexpr int counterAreaWidth = 55

Private Slots

void updateBoundingRect ()
void rearrangeZones ()
void rearrangeCounters ()

Private Attributes

Playerplayer
PlayerAreaplayerArea
PlayerTargetplayerTarget
PileZonedeckZoneGraphicsItem
PileZonesideboardGraphicsItem
PileZonegraveyardZoneGraphicsItem
PileZonerfgZoneGraphicsItem
TableZonetableZoneGraphicsItem
StackZonestackZoneGraphicsItem
HandZonehandZoneGraphicsItem
QRectF bRect
bool mirrored

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ PlayerGraphicsItem()

PlayerGraphicsItem::PlayerGraphicsItem ( Player * player)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ boundingRect()

QRectF PlayerGraphicsItem::boundingRect ( ) const
nodiscardoverride
Here is the caller graph for this function:

◆ getDeckZoneGraphicsItem()

PileZone * PlayerGraphicsItem::getDeckZoneGraphicsItem ( ) const
inlinenodiscard

◆ getGameScene()

GameScene * PlayerGraphicsItem::getGameScene ( ) const
inline
Here is the caller graph for this function:

◆ getGraveyardZoneGraphicsItem()

PileZone * PlayerGraphicsItem::getGraveyardZoneGraphicsItem ( ) const
inlinenodiscard

◆ getHandZoneGraphicsItem()

HandZone * PlayerGraphicsItem::getHandZoneGraphicsItem ( ) const
inlinenodiscard

◆ getMinimumWidth()

qreal PlayerGraphicsItem::getMinimumWidth ( ) const
Here is the call graph for this function:

◆ getMirrored()

bool PlayerGraphicsItem::getMirrored ( ) const
inline

◆ getPlayer()

Player * PlayerGraphicsItem::getPlayer ( ) const
inline

◆ getPlayerArea()

PlayerArea * PlayerGraphicsItem::getPlayerArea ( ) const
inline

◆ getPlayerTarget()

PlayerTarget * PlayerGraphicsItem::getPlayerTarget ( ) const
inline
Here is the caller graph for this function:

◆ getRfgZoneGraphicsItem()

PileZone * PlayerGraphicsItem::getRfgZoneGraphicsItem ( ) const
inlinenodiscard

◆ getSideboardZoneGraphicsItem()

PileZone * PlayerGraphicsItem::getSideboardZoneGraphicsItem ( ) const
inlinenodiscard

◆ getStackZoneGraphicsItem()

StackZone * PlayerGraphicsItem::getStackZoneGraphicsItem ( ) const
inlinenodiscard

◆ getTableZoneGraphicsItem()

TableZone * PlayerGraphicsItem::getTableZoneGraphicsItem ( ) const
inlinenodiscard

◆ initializeZones()

void PlayerGraphicsItem::initializeZones ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onPlayerActiveChanged

void PlayerGraphicsItem::onPlayerActiveChanged ( bool _active)
slot
Here is the caller graph for this function:

◆ paint()

void PlayerGraphicsItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
override

◆ playerCountChanged

void PlayerGraphicsItem::playerCountChanged ( )
signal

◆ processSceneSizeChange()

void PlayerGraphicsItem::processSceneSizeChange ( int newPlayerWidth)
Here is the call graph for this function:

◆ rearrangeCounters

void PlayerGraphicsItem::rearrangeCounters ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rearrangeZones

void PlayerGraphicsItem::rearrangeZones ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi

void PlayerGraphicsItem::retranslateUi ( )
slot
Here is the caller graph for this function:

◆ setMirrored()

void PlayerGraphicsItem::setMirrored ( bool _mirrored)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeChanged

void PlayerGraphicsItem::sizeChanged ( )
signal
Here is the caller graph for this function:

◆ type()

int PlayerGraphicsItem::type ( ) const
inlineoverride

◆ updateBoundingRect

void PlayerGraphicsItem::updateBoundingRect ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bRect

QRectF PlayerGraphicsItem::bRect
private

◆ counterAreaWidth

int PlayerGraphicsItem::counterAreaWidth = 55
staticconstexpr

◆ deckZoneGraphicsItem

PileZone* PlayerGraphicsItem::deckZoneGraphicsItem
private

◆ graveyardZoneGraphicsItem

PileZone* PlayerGraphicsItem::graveyardZoneGraphicsItem
private

◆ handZoneGraphicsItem

HandZone* PlayerGraphicsItem::handZoneGraphicsItem
private

◆ mirrored

bool PlayerGraphicsItem::mirrored
private

◆ player

Player* PlayerGraphicsItem::player
private

◆ playerArea

PlayerArea* PlayerGraphicsItem::playerArea
private

◆ playerTarget

PlayerTarget* PlayerGraphicsItem::playerTarget
private

◆ rfgZoneGraphicsItem

PileZone* PlayerGraphicsItem::rfgZoneGraphicsItem
private

◆ sideboardGraphicsItem

PileZone* PlayerGraphicsItem::sideboardGraphicsItem
private

◆ stackZoneGraphicsItem

StackZone* PlayerGraphicsItem::stackZoneGraphicsItem
private

◆ tableZoneGraphicsItem

TableZone* PlayerGraphicsItem::tableZoneGraphicsItem
private

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