mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
24
cockatrice/src/counter.h
Normal file
24
cockatrice/src/counter.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef COUNTER_H
|
||||
#define COUNTER_H
|
||||
|
||||
#include <QGraphicsItem>
|
||||
|
||||
class Player;
|
||||
|
||||
class Counter : public QGraphicsItem {
|
||||
private:
|
||||
QString name;
|
||||
int value;
|
||||
protected:
|
||||
Player *player;
|
||||
public:
|
||||
Counter(Player *_player, const QString &_name, QGraphicsItem *parent = 0);
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
|
||||
QString getName() const { return name; }
|
||||
int getValue() const { return value; }
|
||||
void setValue(int _value);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue