Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
counter_general.h
Go to the documentation of this file.
1
6
7#ifndef COUNTER_GENERAL_H
8#define COUNTER_GENERAL_H
9
10#include "abstract_counter.h"
11
13{
14 Q_OBJECT
15private:
16 QColor color;
17 int radius;
18
19public:
20 GeneralCounter(Player *_player,
21 int _id,
22 const QString &_name,
23 const QColor &_color,
24 int _radius,
25 int _value,
26 bool useNameForShortcut = false,
27 QGraphicsItem *parent = nullptr);
28 QRectF boundingRect() const override;
29 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
30};
31
32#endif
TODO: Document this.
AbstractCounter(Player *_player, int _id, const QString &_name, bool _shownInCounterArea, int _value, bool _useNameForShortcut=false, QGraphicsItem *parent=nullptr)
Definition abstract_counter.cpp:19
bool useNameForShortcut
Definition abstract_counter.h:31
QColor color
Definition counter_general.h:16
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition counter_general.cpp:26
GeneralCounter(Player *_player, int _id, const QString &_name, const QColor &_color, int _radius, int _value, bool useNameForShortcut=false, QGraphicsItem *parent=nullptr)
Definition counter_general.cpp:8
int radius
Definition counter_general.h:17
QRectF boundingRect() const override
Definition counter_general.cpp:21
Definition player.h:65