mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
[Game][Arrows] ArrowItem should not send deletion game commands by itself (#6932)
Took 13 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
d2164c3f08
commit
98c00c55ed
3 changed files with 13 additions and 6 deletions
|
|
@ -21,6 +21,9 @@ class ArrowItem : public QObject, public QGraphicsItem
|
|||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QGraphicsItem)
|
||||
signals:
|
||||
void requestDeletion(int id);
|
||||
|
||||
private:
|
||||
QPainterPath path;
|
||||
|
||||
|
|
@ -37,6 +40,7 @@ protected:
|
|||
|
||||
public:
|
||||
ArrowItem(PlayerLogic *_player, int _id, ArrowTarget *_startItem, ArrowTarget *_targetItem, const QColor &_color);
|
||||
void onTargetDestroyed();
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
[[nodiscard]] QRectF boundingRect() const override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue