Diffstat (limited to 'noncore/games/zlines/ballpainter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/zlines/ballpainter.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/games/zlines/ballpainter.h b/noncore/games/zlines/ballpainter.h new file mode 100644 index 0000000..339c70f --- a/dev/null +++ b/noncore/games/zlines/ballpainter.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /*************************************************************************** | ||
2 | ballpainter.h - description | ||
3 | ------------------- | ||
4 | begin : Fri May 19 2000 | ||
5 | copyright : (C) 2000 by Roman Merzlyakov | ||
6 | email : roman@sbrf.barrt.ru | ||
7 | copyright : (C) 2000 by Roman Razilov | ||
8 | email : Roman.Razilov@gmx.de | ||
9 | ***************************************************************************/ | ||
10 | |||
11 | /*************************************************************************** | ||
12 | * * | ||
13 | * This program is free software; you can redistribute it and/or modify * | ||
14 | * it under the terms of the GNU General Public License as published by * | ||
15 | * the Free Software Foundation; either version 2 of the License, or * | ||
16 | * (at your option) any later version. * | ||
17 | * * | ||
18 | ***************************************************************************/ | ||
19 | #ifndef __BALLPAINTER_H | ||
20 | #define __BALLPAINTER_H | ||
21 | |||
22 | #include <qobject.h> | ||
23 | #include <qpixmap.h> | ||
24 | #include "cfg.h" | ||
25 | |||
26 | #define CELLSIZE 21 | ||
27 | |||
28 | class BallPainter : public QObject | ||
29 | { | ||
30 | Q_OBJECT | ||
31 | |||
32 | enum Pixmaps { | ||
33 | Field, | ||
34 | Balls, | ||
35 | Fire | ||
36 | }; | ||
37 | QPixmap *pixmap( enum Pixmaps ); | ||
38 | QPixmap* imgCash[NCOLORS][PIXTIME + FIREBALLS + BOOMBALLS + 1]; | ||
39 | QPixmap* backgroundPix; | ||
40 | QPixmap* firePix[FIREPIX]; | ||
41 | |||
42 | void createPixmap(); | ||
43 | |||
44 | public: | ||
45 | |||
46 | BallPainter(); | ||
47 | ~BallPainter(); | ||
48 | |||
49 | |||
50 | // QPixmap* GetAnimatedBall(int color, int shot); | ||
51 | QPixmap* GetBall( int color, int animstep, int panim ); | ||
52 | QPixmap* GetNormalBall(int color) {return GetBall(color,0,ANIM_NO);} | ||
53 | QPixmap* GetBackgroundPix() { return GetBall(NOBALL,0,ANIM_NO);} | ||
54 | |||
55 | }; | ||
56 | |||
57 | #endif | ||