mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
26 lines
665 B
C++
26 lines
665 B
C++
#ifndef COUNTER_GENERAL_H
|
|
#define COUNTER_GENERAL_H
|
|
|
|
#include "abstract_counter.h"
|
|
|
|
class GeneralCounter : public AbstractCounter
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QColor color;
|
|
int radius;
|
|
|
|
public:
|
|
GeneralCounter(Player *_player,
|
|
int _id,
|
|
const QString &_name,
|
|
const QColor &_color,
|
|
int _radius,
|
|
int _value,
|
|
bool useNameForShortcut = false,
|
|
QGraphicsItem *parent = nullptr);
|
|
QRectF boundingRect() const override;
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
};
|
|
|
|
#endif
|