-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathcard.h
More file actions
25 lines (22 loc) · 712 Bytes
/
Copy pathcard.h
File metadata and controls
25 lines (22 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef CARD_H
#define CARD_H
#include "other.h"
class Card : public Other
{
public:
int counter;
QString text;
Card(QString s);
const static QMap<QString, int> map;
const static QVector<QString> name;
const static QVector<int> cost;
const static QVector<int> cool;
QRectF boundingRect() const override;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void advance(int phase) override;
void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
private:
};
#endif // CARD_H