author | koda |
Sun, 16 Oct 2011 18:37:57 +0200 | |
branch | 0.9.16 |
changeset 6001 | 24b3a7ba3884 |
parent 4976 | 088d40d8aba2 |
permissions | -rw-r--r-- |
153 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
4976 | 3 |
* Copyright (c) 2006-2007 Ulyanov Igor <iulyanov@gmail.com> |
4 |
* Copyright (c) 2007-2011 Andrey Korotaev <unC0Rr@gmail.com> |
|
153 | 5 |
* |
184 | 6 |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation; version 2 of the License |
|
153 | 9 |
* |
184 | 10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
153 | 14 |
* |
184 | 15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
153 | 18 |
*/ |
19 |
||
132 | 20 |
#ifndef _HEDGEHOGER_WIDGET |
21 |
#define _HEDGEHOGER_WIDGET |
|
22 |
||
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
23 |
#include "itemNum.h" |
132 | 24 |
|
150 | 25 |
class FrameTeams; |
26 |
||
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
27 |
class CHedgehogerWidget : public ItemNum |
132 | 28 |
{ |
29 |
Q_OBJECT |
|
30 |
||
31 |
public: |
|
4412
c9a78ba03679
added disabling option to itemNum and grey images for that. also made default weapon sets uneditable and not deleteable.
Henek
parents:
1066
diff
changeset
|
32 |
CHedgehogerWidget(const QImage& im, const QImage& img, QWidget * parent); |
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
33 |
virtual ~CHedgehogerWidget(); |
207 | 34 |
unsigned char getHedgehogsNum() const; |
352 | 35 |
void setHHNum (unsigned int num); |
362
b28e0dd48269
hedgehogs num modification now allowed to chief client only
displacer
parents:
352
diff
changeset
|
36 |
void setNonInteractive(); |
352 | 37 |
|
38 |
signals: |
|
39 |
void hedgehogsNumChanged(); |
|
132 | 40 |
|
41 |
protected: |
|
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
42 |
virtual void incItems(); |
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
486
diff
changeset
|
43 |
virtual void decItems(); |
486 | 44 |
|
132 | 45 |
private: |
150 | 46 |
CHedgehogerWidget(); |
47 |
FrameTeams* pOurFrameTeams; |
|
132 | 48 |
}; |
49 |
||
50 |
#endif // _HEDGEHOGER_WIDGET |