author | unc0rr |
Thu, 25 Feb 2010 18:34:36 +0000 | |
changeset 2869 | 93cc73dcc421 |
parent 1066 | 1f1b3686a2b0 |
child 4412 | c9a78ba03679 |
permissions | -rw-r--r-- |
153 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
486 | 3 |
* Copyright (c) 2006, 2007 Ulyanov Igor <iulyanov@gmail.com> |
153 | 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 |
||
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
22 |
#include "itemNum.h" |
132 | 23 |
|
150 | 24 |
class FrameTeams; |
25 |
||
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
26 |
class CHedgehogerWidget : public ItemNum |
132 | 27 |
{ |
28 |
Q_OBJECT |
|
29 |
||
30 |
public: |
|
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
31 |
CHedgehogerWidget(const QImage& im, QWidget * parent); |
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
32 |
virtual ~CHedgehogerWidget(); |
207 | 33 |
unsigned char getHedgehogsNum() const; |
352 | 34 |
void setHHNum (unsigned int num); |
362
b28e0dd48269
hedgehogs num modification now allowed to chief client only
displacer
parents:
352
diff
changeset
|
35 |
void setNonInteractive(); |
352 | 36 |
|
37 |
signals: |
|
38 |
void hedgehogsNumChanged(); |
|
132 | 39 |
|
40 |
protected: |
|
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
41 |
virtual void incItems(); |
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
42 |
virtual void decItems(); |
486 | 43 |
|
132 | 44 |
private: |
150 | 45 |
CHedgehogerWidget(); |
46 |
FrameTeams* pOurFrameTeams; |
|
132 | 47 |
}; |
48 |
||
49 |
#endif // _HEDGEHOGER_WIDGET |