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

#include <player_target.h>

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

Public Types

enum  { Type = typePlayerTarget }

Public Slots

void counterDeleted ()

Public Member Functions

int type () const override
 PlayerTarget (Player *_player=nullptr, QGraphicsItem *parentItem=nullptr)
 ~PlayerTarget () override
QRectF boundingRect () const override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
AbstractCounteraddCounter (int _counterId, const QString &_name, int _value)
Public Member Functions inherited from ArrowTarget
 ArrowTarget (Player *_owner, QGraphicsItem *parent=nullptr)
 ~ArrowTarget () override
PlayergetOwner () const
void setBeingPointedAt (bool _beingPointedAt)
bool getBeingPointedAt () const
const QList< ArrowItem * > & getArrowsFrom () const
void addArrowFrom (ArrowItem *arrow)
void removeArrowFrom (ArrowItem *arrow)
const QList< ArrowItem * > & getArrowsTo () const
void addArrowTo (ArrowItem *arrow)
void removeArrowTo (ArrowItem *arrow)
Public Member Functions inherited from AbstractGraphicsItem
 AbstractGraphicsItem (QGraphicsItem *parent=nullptr)

Private Attributes

QPixmap fullPixmap
PlayerCounterplayerCounter

Additional Inherited Members

Protected Member Functions inherited from ArrowTarget
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
Protected Member Functions inherited from AbstractGraphicsItem
void paintNumberEllipse (int number, int radius, const QColor &color, int position, int count, QPainter *painter)
Protected Attributes inherited from ArrowTarget
Playerowner

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ PlayerTarget()

PlayerTarget::PlayerTarget ( Player * _player = nullptr,
QGraphicsItem * parentItem = nullptr )
explicit
Here is the call graph for this function:

◆ ~PlayerTarget()

PlayerTarget::~PlayerTarget ( )
override

Member Function Documentation

◆ addCounter()

AbstractCounter * PlayerTarget::addCounter ( int _counterId,
const QString & _name,
int _value )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ boundingRect()

QRectF PlayerTarget::boundingRect ( ) const
override
Here is the caller graph for this function:

◆ counterDeleted

void PlayerTarget::counterDeleted ( )
slot
Here is the caller graph for this function:

◆ paint()

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

◆ type()

int PlayerTarget::type ( ) const
inlineoverride

Member Data Documentation

◆ fullPixmap

QPixmap PlayerTarget::fullPixmap
private

◆ playerCounter

PlayerCounter* PlayerTarget::playerCounter
private

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