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

#include <arrow_item.h>

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

Public Member Functions

 ArrowAttachItem (ArrowTarget *_startItem)
void addChildArrow (ArrowAttachItem *childArrow)
Public Member Functions inherited from ArrowItem
 ArrowItem (Player *_player, int _id, ArrowTarget *_startItem, ArrowTarget *_targetItem, const QColor &color)
 ~ArrowItem () override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
QRectF boundingRect () const override
QPainterPath shape () const override
void updatePath ()
void updatePath (const QPointF &endPoint)
int getId () const
PlayergetPlayer () const
void setStartItem (ArrowTarget *_item)
void setTargetItem (ArrowTarget *_item)
ArrowTargetgetStartItem () const
ArrowTargetgetTargetItem () const
void setTargetLocked (bool _targetLocked)
void delArrow ()

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
Protected Member Functions inherited from ArrowItem
void mousePressEvent (QGraphicsSceneMouseEvent *event) override

Private Member Functions

void attachCards (CardItem *startCard, const CardItem *targetCard)

Private Attributes

QList< ArrowAttachItem * > childArrows

Additional Inherited Members

Protected Attributes inherited from ArrowItem
Playerplayer
int id
ArrowTargetstartItem
ArrowTargettargetItem
bool targetLocked
QColor color
bool fullColor

Constructor & Destructor Documentation

◆ ArrowAttachItem()

ArrowAttachItem::ArrowAttachItem ( ArrowTarget * _startItem)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addChildArrow()

void ArrowAttachItem::addChildArrow ( ArrowAttachItem * childArrow)
Here is the call graph for this function:

◆ attachCards()

void ArrowAttachItem::attachCards ( CardItem * startCard,
const CardItem * targetCard )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseMoveEvent()

void ArrowAttachItem::mouseMoveEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ mouseReleaseEvent()

void ArrowAttachItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected
Here is the call graph for this function:

Member Data Documentation

◆ childArrows

QList<ArrowAttachItem *> ArrowAttachItem::childArrows
private

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