Educational Game Platform
gamescene_1_dice.h
Go to the documentation of this file.
1 #ifndef GAMESCENE_1_DICE_H
2 #define GAMESCENE_1_DICE_H
3 
4 #include <QObject>
5 #include <QGraphicsPixmapItem>
6 #include <QGraphicsScene>
7 #include <QTimer>
8 #include <stdlib.h>
9 #include <time.h>
10 
17 class gameScene_1_dice : public QObject, public QGraphicsPixmapItem
18 {
19  Q_OBJECT
20 public:
21  explicit gameScene_1_dice(QObject *parent = 0);
22  int *id;
23  int *diceVal;
24 
25 signals:
26 
27 public slots:
28  void update();
29  void setup(int value);
30 };
31 
32 #endif // GAMESCENE_1_DICE_H
gameScene_1_dice
Definition: gamescene_1_dice.h:18
gameScene_1_dice::id
int * id
ID of the dice ( dice1/dice2)
Definition: gamescene_1_dice.h:22
gameScene_1_dice::update
void update()
gameScene_1_dice::update
Definition: gamescene_1_dice.cpp:43
gameScene_1_dice::setup
void setup(int value)
gameScene_1_dice::setup
Definition: gamescene_1_dice.cpp:33
gameScene_1_dice::diceVal
int * diceVal
int denoting current value of dice
Definition: gamescene_1_dice.h:23