1/*
2 Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de>
3
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2 of the License, or
6 (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16*/
17
18#ifndef __PLAYER_INFO_H
19#define __PLAYER_INFO_H
20
21#include <QFrame>
22#include <QLabel>
23#include <QLCDNumber>
24class QPixmap;
25
26class PlayerInfo:public QFrame
27{
28 Q_OBJECT
29public:
30 explicit PlayerInfo(int pnr,QWidget *parent=0);
31 static void loadPixmaps();
32public slots:
33 void setHitpoints(int h);
34 void setEnergy(int e);
35 void setWins(int w);
36private:
37 static QPixmap* pplayer[6];
38 int currentPixmap;
39 QLabel lplayer,lenergy,lwins;
40 QLCDNumber hitpoints,energy,wins;
41};
42
43#endif
44