[Counters] Split counters into graphics and logic states

Took 22 minutes
This commit is contained in:
Lukas Brübach 2026-05-20 19:47:04 +02:00
parent 10b9a65f17
commit 2063be6fa0
17 changed files with 279 additions and 217 deletions

View file

@ -12,17 +12,10 @@
class GeneralCounter : public AbstractCounter
{
Q_OBJECT
private:
QColor color;
int radius;
public:
GeneralCounter(PlayerLogic *_player,
int _id,
const QString &_name,
const QColor &_color,
int _radius,
int _value,
GeneralCounter(CounterState *state,
PlayerLogic *player,
bool useNameForShortcut = false,
QGraphicsItem *parent = nullptr);
QRectF boundingRect() const override;