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

#include <player_area.h>

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

Public Types

enum  { Type = typeOther }

Public Member Functions

int type () const override
 PlayerArea (QGraphicsItem *parent=nullptr)
QRectF boundingRect () const override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void setSize (qreal width, qreal height)
void setPlayerZoneId (int _playerZoneId)
int getPlayerZoneId () const

Private Slots

void updateBg ()

Private Attributes

QRectF bRect
int playerZoneId

Detailed Description

The entire graphical area belonging to a single player.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ PlayerArea()

PlayerArea::PlayerArea ( QGraphicsItem * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ boundingRect()

QRectF PlayerArea::boundingRect ( ) const
inlinenodiscardoverride
Here is the caller graph for this function:

◆ getPlayerZoneId()

int PlayerArea::getPlayerZoneId ( ) const
inlinenodiscard

◆ paint()

void PlayerArea::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
override
Here is the call graph for this function:

◆ setPlayerZoneId()

void PlayerArea::setPlayerZoneId ( int _playerZoneId)

◆ setSize()

void PlayerArea::setSize ( qreal width,
qreal height )

◆ type()

int PlayerArea::type ( ) const
inlinenodiscardoverride

◆ updateBg

void PlayerArea::updateBg ( )
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ bRect

QRectF PlayerArea::bRect
private

◆ playerZoneId

int PlayerArea::playerZoneId
private

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