![]() |
Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
|
#include <arrow_item.h>
Public Member Functions | |
| ArrowAttachItem (ArrowTarget *_startItem) | |
| void | addChildArrow (ArrowAttachItem *child) |
| Public Member Functions inherited from ArrowItem | |
| ArrowItem (PlayerLogic *_player, int _id, ArrowTarget *_startItem, ArrowTarget *_targetItem, const QColor &_color) | |
| void | onTargetDestroyed () |
| 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 |
| PlayerLogic * | getPlayer () const |
| ArrowTarget * | getStartItem () const |
| ArrowTarget * | getTargetItem () 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 |
| QMetaObject::Connection | positionConnection |
Additional Inherited Members | |
| Signals inherited from ArrowItem | |
| void | requestDeletion (int id) |
| Protected Attributes inherited from ArrowItem | |
| PlayerLogic * | player |
| int | id |
| QPointer< ArrowTarget > | startItem |
| QPointer< ArrowTarget > | targetItem |
| bool | targetLocked = false |
| QColor | color |
| bool | fullColor = true |
|
explicit |
| void ArrowAttachItem::addChildArrow | ( | ArrowAttachItem * | child | ) |
|
overrideprotected |
|
overrideprotected |
|
private |
|
private |