1621
|
1 |
/*
|
|
2 |
* Hedgewars, a free turn based strategy game
|
|
3 |
* Copyright (c) 2009 Andrey Korotaev <unC0Rr@gmail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or modify
|
|
6 |
* it under the terms of the GNU General Public License as published by
|
|
7 |
* the Free Software Foundation; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef STATSPAGE_H
|
|
20 |
#define STATSPAGE_H
|
|
21 |
|
1625
|
22 |
#include <QVector>
|
|
23 |
#include <QMap>
|
1621
|
24 |
#include "pages.h"
|
|
25 |
|
1625
|
26 |
class QGraphicsView;
|
|
27 |
|
1621
|
28 |
class PageGameStats : public AbstractPage
|
|
29 |
{
|
|
30 |
Q_OBJECT
|
|
31 |
|
|
32 |
public:
|
|
33 |
PageGameStats(QWidget* parent = 0);
|
|
34 |
|
|
35 |
QPushButton *BtnBack;
|
|
36 |
QLabel *labelGameStats;
|
1625
|
37 |
QGraphicsView * graphic;
|
1622
|
38 |
|
|
39 |
public slots:
|
|
40 |
void GameStats(char type, const QString & info);
|
|
41 |
void clear();
|
1625
|
42 |
void renderStats();
|
1622
|
43 |
|
|
44 |
private:
|
|
45 |
void AddStatText(const QString & msg);
|
1625
|
46 |
|
|
47 |
QMap<quint32, QVector<quint32> > healthPoints;
|
1621
|
48 |
};
|
|
49 |
|
|
50 |
#endif // STATSPAGE_H
|