Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CLASES_H
- #define CLASES_H
- #include <QGraphicsRectItem>
- #include <QGraphicsScene>
- #include <QGraphicsTextItem>
- #include <QObject>
- #include <QTime>
- #include <QTimer>
- #include <QBrush>
- #include <QColor>
- #include <QDebug>
- #include <QString>
- #define ArraySize(array) ((int)(sizeof(array)/sizeof(array[0])))
- //=============PANEL DE NUMEROS SORTEADOS=====================
- class Panel_sort : public QObject
- {
- Q_OBJECT
- public:
- bool numeros[61];
- QGraphicsTextItem text[61];
- Panel_sort(QGraphicsRectItem *rectangulo);
- void reset();
- public slots:
- void refresh_seed();
- void nuevo_numero();
- };
- //===============================================
- //===============CARTONES (PAPELETAS CON LOS NUMEROS)================================
- class Carton
- {
- public:
- QGraphicsTextItem numeros[15];
- int int_numeros[15];
- Carton(QGraphicsRectItem *rectangulo);
- QGraphicsScene *m_scene;
- void Nuevo_Carton();
- };
- //===============================================
- //=============== JUEGO ================================
- class Game : public QObject
- {
- Q_OBJECT
- public:
- QTimer t;
- bool lineas[3], bingo;
- int numeros_lanzados, score;
- QGraphicsTextItem num_lanz, score_text, message;
- Panel_sort *m_sorteo;
- Carton *m_carton;
- Game(Panel_sort *num_sort, Carton *carton);
- QTimer mt;
- int message_step;
- void mensaje(QString text);
- void partida();
- public slots:
- void lanzada();
- void mensaje_slot();
- };
- //===============================================
- #endif // CLASES_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement