[Player] Rename player to player logic (#6913)

Took 13 minutes

Took 6 seconds

Took 2 minutes

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-05-19 12:36:31 +02:00 committed by GitHub
parent 71790d8e10
commit 5219cffa6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
79 changed files with 397 additions and 386 deletions

View file

@ -7,7 +7,7 @@
#ifndef COCKATRICE_PLAYER_GRAPHICS_ITEM_H
#define COCKATRICE_PLAYER_GRAPHICS_ITEM_H
#include "../game_scene.h"
#include "player.h"
#include "player_logic.h"
#include <QGraphicsObject>
@ -34,7 +34,7 @@ public:
static constexpr int counterAreaWidth = 55;
explicit PlayerGraphicsItem(Player *player);
explicit PlayerGraphicsItem(PlayerLogic *player);
void initializeZones();
[[nodiscard]] QRectF boundingRect() const override;
@ -54,7 +54,7 @@ public:
return static_cast<GameScene *>(scene());
}
Player *getPlayer() const
PlayerLogic *getPlayer() const
{
return player;
}
@ -109,7 +109,7 @@ signals:
void playerCountChanged();
private:
Player *player;
PlayerLogic *player;
PlayerArea *playerArea;
PlayerTarget *playerTarget;
PileZone *deckZoneGraphicsItem;