From c90c389a8a8d9d8661e9772ec4144c5cf2039f23 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klines/ballpainter.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 klines/ballpainter.h (limited to 'klines/ballpainter.h') diff --git a/klines/ballpainter.h b/klines/ballpainter.h new file mode 100644 index 00000000..a0ad2cbb --- /dev/null +++ b/klines/ballpainter.h @@ -0,0 +1,47 @@ +/*************************************************************************** + begin : Fri May 19 2000 + copyright : (C) 2000 by Roman Merzlyakov + email : roman@sbrf.barrt.ru + copyright : (C) 2000 by Roman Razilov + email : Roman.Razilov@gmx.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef BALLPAINTER_H +#define BALLPAINTER_H + +#include +#include +#include "cfg.h" + +#define CELLSIZE 32 + +class BallPainter : public QObject +{ + Q_OBJECT + QPixmap* imgCash[NCOLORS][PIXTIME + FIREBALLS + BOOMBALLS + 1]; + QPixmap* backgroundPix; + QPixmap* firePix[FIREPIX]; + + +public: + BallPainter(); + ~BallPainter(); + + void deletePix(); + void createPix(); + + QPixmap GetBall( int color, int animstep, int panim ); + QPixmap GetNormalBall(int color) { return GetBall(color,0,ANIM_NO); } + QPixmap GetBackgroundPix() { return GetBall(NOBALL,0,ANIM_NO); } +}; + +#endif -- cgit v1.2.1