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

#include <arrow_target.h>

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

Signals

void scenePositionChanged ()

Public Member Functions

 ArrowTarget (PlayerLogic *_owner, QGraphicsItem *parent=nullptr)
 ~ArrowTarget () override=default
PlayerLogicgetOwner () const
void setBeingPointedAt (bool _beingPointedAt)
bool getBeingPointedAt () const
Public Member Functions inherited from AbstractGraphicsItem
 AbstractGraphicsItem (QGraphicsItem *parent=nullptr)

Protected Member Functions

QVariant itemChange (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

PlayerLogicowner

Private Attributes

bool beingPointedAt = false

Constructor & Destructor Documentation

◆ ArrowTarget()

ArrowTarget::ArrowTarget ( PlayerLogic * _owner,
QGraphicsItem * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~ArrowTarget()

ArrowTarget::~ArrowTarget ( )
overridedefault

Member Function Documentation

◆ getBeingPointedAt()

bool ArrowTarget::getBeingPointedAt ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getOwner()

PlayerLogic * ArrowTarget::getOwner ( ) const
inlinenodiscard

◆ itemChange()

QVariant ArrowTarget::itemChange ( GraphicsItemChange change,
const QVariant & value )
overrideprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scenePositionChanged

void ArrowTarget::scenePositionChanged ( )
signal
Here is the caller graph for this function:

◆ setBeingPointedAt()

void ArrowTarget::setBeingPointedAt ( bool _beingPointedAt)
Here is the caller graph for this function:

Member Data Documentation

◆ beingPointedAt

bool ArrowTarget::beingPointedAt = false
private

◆ owner

PlayerLogic* ArrowTarget::owner
protected

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