Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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]

Public Member Functions

 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)

Protected Member Functions

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

Playerowner

Private Attributes

bool beingPointedAt
QList< ArrowItem * > arrowsFrom
QList< ArrowItem * > arrowsTo

Constructor & Destructor Documentation

◆ ArrowTarget()

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

◆ ~ArrowTarget()

ArrowTarget::~ArrowTarget ( )
override

Member Function Documentation

◆ addArrowFrom()

void ArrowTarget::addArrowFrom ( ArrowItem * arrow)
inline

◆ addArrowTo()

void ArrowTarget::addArrowTo ( ArrowItem * arrow)
inline
Here is the caller graph for this function:

◆ getArrowsFrom()

const QList< ArrowItem * > & ArrowTarget::getArrowsFrom ( ) const
inlinenodiscard

◆ getArrowsTo()

const QList< ArrowItem * > & ArrowTarget::getArrowsTo ( ) const
inlinenodiscard

◆ getBeingPointedAt()

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

◆ getOwner()

Player * ArrowTarget::getOwner ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ itemChange()

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

◆ removeArrowFrom()

void ArrowTarget::removeArrowFrom ( ArrowItem * arrow)
inline

◆ removeArrowTo()

void ArrowTarget::removeArrowTo ( ArrowItem * arrow)
inline

◆ setBeingPointedAt()

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

Member Data Documentation

◆ arrowsFrom

QList<ArrowItem *> ArrowTarget::arrowsFrom
private

◆ arrowsTo

QList<ArrowItem *> ArrowTarget::arrowsTo
private

◆ beingPointedAt

bool ArrowTarget::beingPointedAt
private

◆ owner

Player* ArrowTarget::owner
protected

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