arrows can target players; card attachment works

This commit is contained in:
Max-Wilhelm Bruker 2010-07-17 18:24:14 +02:00
parent 61b82bd6f9
commit 614f106304
32 changed files with 885 additions and 402 deletions

View file

@ -4,6 +4,8 @@
#include "arrowtarget.h"
#include <QFont>
class Player;
class PlayerTarget : public ArrowTarget {
private:
QString name;
@ -13,7 +15,7 @@ public:
enum { Type = typePlayerTarget };
int type() const { return Type; }
PlayerTarget(const QString &_name, int _maxWidth, QGraphicsItem *parent = 0);
PlayerTarget(const QString &_name, int _maxWidth, Player *parent = 0);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
};