1 #ifndef COUNTER_GENERAL_H 2 #define COUNTER_GENERAL_H 3 4 #include "abstractcounter.h" 5 6 class GeneralCounter : public AbstractCounter 7 { 8 Q_OBJECT 9 private: 10 QColor color; 11 int radius; 12 13 public: 14 GeneralCounter(Player *_player, 15 int _id, 16 const QString &_name, 17 const QColor &_color, 18 int _radius, 19 int _value, 20 bool useNameForShortcut = false, 21 QGraphicsItem *parent = nullptr, 22 QWidget *game = nullptr); 23 QRectF boundingRect() const; 24 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); 25 }; 26 27 #endif 28