mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-23 02:42:16 -07:00
Refactor UUID to be providerId and change QString comparisons with empty string to isEmpty().
This commit is contained in:
parent
472186b4a0
commit
a958a126a5
24 changed files with 125 additions and 112 deletions
|
|
@ -39,7 +39,7 @@ private:
|
|||
int id;
|
||||
int coord_x, coord_y;
|
||||
QString name;
|
||||
QString uuid;
|
||||
QString provider_id;
|
||||
QMap<int, int> counters;
|
||||
bool tapped;
|
||||
bool attacking;
|
||||
|
|
@ -55,7 +55,12 @@ private:
|
|||
Server_Card *stashedCard;
|
||||
|
||||
public:
|
||||
Server_Card(QString _name, QString _uuid, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone = nullptr);
|
||||
Server_Card(QString _name,
|
||||
QString _provider_id,
|
||||
int _id,
|
||||
int _coord_x,
|
||||
int _coord_y,
|
||||
Server_CardZone *_zone = nullptr);
|
||||
~Server_Card() override;
|
||||
|
||||
Server_CardZone *getZone() const
|
||||
|
|
@ -71,9 +76,9 @@ public:
|
|||
{
|
||||
return id;
|
||||
}
|
||||
QString getUUID() const
|
||||
QString getProviderId() const
|
||||
{
|
||||
return uuid;
|
||||
return provider_id;
|
||||
}
|
||||
int getX() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue