#include <arrow_item.h>
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 |
| Player * | getPlayer () const |
| void | setStartItem (ArrowTarget *_item) |
| void | setTargetItem (ArrowTarget *_item) |
| 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 |
Additional Inherited Members | |
| Protected Attributes inherited from ArrowItem | |
| Player * | player |
| int | id |
| ArrowTarget * | startItem |
| ArrowTarget * | targetItem |
| bool | targetLocked |
| QColor | color |
| bool | fullColor |
|
explicit |
| void ArrowAttachItem::addChildArrow | ( | ArrowAttachItem * | childArrow | ) |
|
overrideprotected |
|
overrideprotected |
|
private |