author | displacer |
Sat, 25 Nov 2006 17:08:39 +0000 | |
changeset 277 | 04a613bab65c |
parent 207 | 287077789132 |
child 352 | 4665bfe25470 |
permissions | -rw-r--r-- |
153 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Ulyanov Igor <iulyanov@gmail.com> |
|
4 |
* |
|
184 | 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 |
|
153 | 8 |
* |
184 | 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. |
|
153 | 13 |
* |
184 | 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 |
|
153 | 17 |
*/ |
18 |
||
132 | 19 |
#ifndef _HEDGEHOGER_WIDGET |
20 |
#define _HEDGEHOGER_WIDGET |
|
21 |
||
22 |
#include <QWidget> |
|
23 |
||
150 | 24 |
class FrameTeams; |
25 |
||
132 | 26 |
class CHedgehogerWidget : public QWidget |
27 |
{ |
|
28 |
Q_OBJECT |
|
29 |
||
30 |
public: |
|
150 | 31 |
CHedgehogerWidget(QWidget * parent); |
147 | 32 |
~CHedgehogerWidget(); |
207 | 33 |
unsigned char getHedgehogsNum() const; |
132 | 34 |
|
35 |
protected: |
|
36 |
virtual void paintEvent(QPaintEvent* event); |
|
37 |
virtual void mousePressEvent ( QMouseEvent * event ); |
|
38 |
||
39 |
private: |
|
150 | 40 |
CHedgehogerWidget(); |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
41 |
unsigned char numHedgehogs; |
150 | 42 |
FrameTeams* pOurFrameTeams; |
132 | 43 |
}; |
44 |
||
45 |
#endif // _HEDGEHOGER_WIDGET |