Last change
on this file since 87 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef NIMFORM_H
|
---|
2 | #define NIMFORM_H
|
---|
3 |
|
---|
4 | #include "stapeldisplay.h"
|
---|
5 |
|
---|
6 | #include <qmainwindow.h>
|
---|
7 | #include <qlabel.h>
|
---|
8 | #include <qcheckbutton.h>
|
---|
9 |
|
---|
10 | class NimForm: public QMainWindow
|
---|
11 | {
|
---|
12 | Q_OBJECT
|
---|
13 | public:
|
---|
14 | NimForm();
|
---|
15 | ~NimForm();
|
---|
16 |
|
---|
17 | QPopupMenu *optionsMenu;
|
---|
18 |
|
---|
19 |
|
---|
20 | public slots:
|
---|
21 | void stapelMin( int, int ); //stapelnummer, aantal
|
---|
22 |
|
---|
23 | protected:
|
---|
24 | //virtual void closeEvent( QCloseEvent * );
|
---|
25 |
|
---|
26 | private slots:
|
---|
27 | void fileNew();
|
---|
28 | void fileQuit();
|
---|
29 | void helpHelp();
|
---|
30 | void helpAbout();
|
---|
31 | private:
|
---|
32 | StapelGroupBox *stapelBox[20]; //keuze boxjes
|
---|
33 |
|
---|
34 | int stapelAantal; //Aantal stapel in het spel
|
---|
35 | int stokjesMin; //Min aantal stokjes (0 altijd)
|
---|
36 | int stokjesMax; //Max aantal stokjes
|
---|
37 | int niveauComputer; //Niveau van computer 1=Random, 2=Winnend
|
---|
38 |
|
---|
39 | bool showWinnend; //Laat winnende zet zien
|
---|
40 |
|
---|
41 | void clearBord(int stapelAantalLocal, int stokjesMinLocal,
|
---|
42 | int stokjesMaxLocal );
|
---|
43 | void createBord(int stapelAantalLocal, int stokjesMinLocal,
|
---|
44 | int stokjesMaxLocal );
|
---|
45 | int getStapelAantal( int stapelNumber );
|
---|
46 | bool checkGewonnen( );
|
---|
47 |
|
---|
48 | QPopupMenu *fileMenu;
|
---|
49 | QPopupMenu *helpMenu;
|
---|
50 |
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.