Refactor UUID to be providerId and change QString comparisons with empty string to isEmpty().

This commit is contained in:
Lukas Brübach 2024-11-19 03:06:45 +01:00
parent 472186b4a0
commit a958a126a5
24 changed files with 125 additions and 112 deletions

View file

@ -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
{