Educational Game Platform
card.h
Go to the documentation of this file.
1 #ifndef CARD_H
2 #define CARD_H
3 
4 #include <QObject>
5 #include <QGraphicsPixmapItem>
6 #include <QGraphicsScene>
7 
14 class card : public QObject,public QGraphicsPixmapItem
15 {
16  Q_OBJECT
17 public:
18  explicit card(QObject *parent = 0);
19 
20  bool *hasCard;
21  bool *cardShown;
22  int *cardValue;
23 
24 
25 
26 signals:
27 
28 public slots:
29 void setPosition(int x, int y, int rotation);
30 void setCardPic();
31 };
32 
33 #endif // CARD_H
card::setPosition
void setPosition(int x, int y, int rotation)
card::setPosition
Definition: card.cpp:32
card::cardValue
int * cardValue
Current Card value in the Cabo game (0-13)
Definition: card.h:22
card
Definition: card.h:15
card::hasCard
bool * hasCard
Check if the user has this card (in case the user has matched cards (NOT USED))
Definition: card.h:20
card::cardShown
bool * cardShown
Check if the card is shown (i.e. face up) or not.
Definition: card.h:21