164
|
1 |
/*
|
1066
|
2 |
* Hedgewars, a free turn based strategy game
|
164
|
3 |
* Copyright (c) 2006 Igor Ulyanov <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
|
164
|
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.
|
164
|
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
|
164
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef _HWMAP_INCLUDED
|
|
20 |
#define _HWMAP_INCLUDED
|
|
21 |
|
|
22 |
#include <QByteArray>
|
|
23 |
#include <QString>
|
|
24 |
#include <QImage>
|
|
25 |
|
177
|
26 |
#include "tcpBase.h"
|
164
|
27 |
|
|
28 |
#include <string>
|
|
29 |
|
177
|
30 |
class HWMap : public TCPBase
|
164
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
HWMap();
|
168
|
36 |
virtual ~HWMap();
|
164
|
37 |
void getImage(std::string seed);
|
|
38 |
|
177
|
39 |
protected:
|
|
40 |
virtual QStringList setArguments();
|
|
41 |
virtual void onClientDisconnect();
|
|
42 |
virtual void SendToClientFirst();
|
|
43 |
|
164
|
44 |
signals:
|
|
45 |
void ImageReceived(const QImage newImage);
|
1790
|
46 |
void HHLimitReceived(int hhLimit);
|
164
|
47 |
|
|
48 |
private:
|
|
49 |
std::string m_seed;
|
|
50 |
|
|
51 |
private slots:
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif // _HWMAP_INCLUDED
|