mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-23 10:52:16 -07:00
Introduce UUID attribute to abstract_card_item, card_item, deck_view_card, server_card and serverinfo_card.
This commit is contained in:
parent
c6a7b17d22
commit
90c4b223dd
9 changed files with 27 additions and 9 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "card_item.h"
|
||||
|
||||
#include "../../client/tabs/tab_game.h"
|
||||
#include "../../main.h"
|
||||
#include "../../settings/cache_settings.h"
|
||||
#include "../board/arrow_item.h"
|
||||
#include "../game_scene.h"
|
||||
|
|
@ -20,11 +19,12 @@
|
|||
|
||||
CardItem::CardItem(Player *_owner,
|
||||
const QString &_name,
|
||||
const QString &_uuid,
|
||||
int _cardid,
|
||||
bool _revealedCard,
|
||||
QGraphicsItem *parent,
|
||||
CardZone *_zone)
|
||||
: AbstractCardItem(_name, _owner, _cardid, parent), zone(_zone), revealedCard(_revealedCard), attacking(false),
|
||||
: AbstractCardItem(_name, _uuid, _owner, _cardid, parent), zone(_zone), revealedCard(_revealedCard), attacking(false),
|
||||
destroyOnZoneChange(false), doesntUntap(false), dragItem(nullptr), attachedTo(nullptr)
|
||||
{
|
||||
owner->addCard(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue