Last change
on this file since 137 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 |
|
---|
12 | class QPushButton;
|
---|
13 | class LCDRange;
|
---|
14 | class QLCDNumber;
|
---|
15 | class CannonField;
|
---|
16 |
|
---|
17 | #include "lcdrange.h"
|
---|
18 | #include "cannon.h"
|
---|
19 |
|
---|
20 |
|
---|
21 | class GameBoard : public QWidget
|
---|
22 | {
|
---|
23 | Q_OBJECT
|
---|
24 | public:
|
---|
25 | GameBoard( QWidget *parent=0, const char *name=0 );
|
---|
26 |
|
---|
27 | protected slots:
|
---|
28 | void fire();
|
---|
29 | void hit();
|
---|
30 | void missed();
|
---|
31 | void newGame();
|
---|
32 |
|
---|
33 | private:
|
---|
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.