mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 18:32:17 -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
|
|
@ -39,6 +39,7 @@ private:
|
|||
int id;
|
||||
int coord_x, coord_y;
|
||||
QString name;
|
||||
QString uuid;
|
||||
QMap<int, int> counters;
|
||||
bool tapped;
|
||||
bool attacking;
|
||||
|
|
@ -54,7 +55,7 @@ private:
|
|||
Server_Card *stashedCard;
|
||||
|
||||
public:
|
||||
Server_Card(QString _name, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone = nullptr);
|
||||
Server_Card(QString _name, QString _uuid, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone = nullptr);
|
||||
~Server_Card() override;
|
||||
|
||||
Server_CardZone *getZone() const
|
||||
|
|
@ -70,6 +71,10 @@ public:
|
|||
{
|
||||
return id;
|
||||
}
|
||||
QString getUUID() const
|
||||
{
|
||||
return uuid;
|
||||
}
|
||||
int getX() const
|
||||
{
|
||||
return coord_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue