source: trunk/tutorial/t13/gamebrd.h@ 127

Last change on this file since 127 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 726 bytes
Line 
1/****************************************************************
2**
3** Definition of GameBoard class, Qt tutorial 13
4**
5****************************************************************/
6
7#ifndef GAMEBRD_H
8#define GAMEBRD_H
9
10#include <qwidget.h>
11
12class QPushButton;
13class LCDRange;
14class QLCDNumber;
15class CannonField;
16
17#include "lcdrange.h"
18#include "cannon.h"
19
20
21class GameBoard : public QWidget
22{
23 Q_OBJECT
24public:
25 GameBoard( QWidget *parent=0, const char *name=0 );
26
27protected slots:
28 void fire();
29 void hit();
30 void missed();
31 void newGame();
32
33private:
34 QLCDNumber *hits;
35 QLCDNumber *shotsLeft;
36 CannonField *cannonField;
37};
38
39
40#endif // GAMEBRD_H
Note: See TracBrowser for help on using the repository browser.