File indexing completed on 2024-04-21 04:04:56
0001 /* 0002 SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __PLAYER_INFO_H 0008 #define __PLAYER_INFO_H 0009 0010 #include <QFrame> 0011 #include <QLabel> 0012 #include <QLCDNumber> 0013 class QPixmap; 0014 0015 class PlayerInfo:public QFrame 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit PlayerInfo(int pnr,QWidget *parent = nullptr); 0020 static void loadPixmaps(); 0021 public Q_SLOTS: 0022 void setHitpoints(int h); 0023 void setEnergy(int e); 0024 void setWins(int w); 0025 private: 0026 static QPixmap* pplayer[6]; 0027 int currentPixmap; 0028 QLabel lplayer,lenergy,lwins; 0029 QLCDNumber hitpoints,energy,wins; 0030 }; 0031 0032 #endif