removed some unneeded code, counter appearance changed

This commit is contained in:
Max-Wilhelm Bruker 2009-09-25 12:56:11 +02:00
parent a543c9b90c
commit 29699418d2
20 changed files with 293 additions and 242 deletions

View file

@ -7,17 +7,20 @@ class Player;
class Counter : public QGraphicsItem {
private:
int id;
QString name;
QColor color;
int radius;
int value;
protected:
Player *player;
void mousePressEvent(QGraphicsSceneMouseEvent *event);
public:
Counter(Player *_player, const QString &_name, QColor _color, int _value, QGraphicsItem *parent = 0);
Counter(Player *_player, int _id, const QString &_name, QColor _color, int _radius, int _value, QGraphicsItem *parent = 0);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
int getId() const { return id; }
QString getName() const { return name; }
int getValue() const { return value; }
void setValue(int _value);