QTfrontend/net/hwmap.h
branchqmlfrontend
changeset 11071 3851ce4f2061
parent 11046 47a8c19ecb60
child 11744 ac58a063d26a
equal deleted inserted replaced
11050:9b7c8c5a94e0 11071:3851ce4f2061
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2006 Igor Ulyanov <iulyanov@gmail.com>
     3  * Copyright (c) 2006 Igor Ulyanov <iulyanov@gmail.com>
     4  * Copyright (c) 2004-2014 Andrey Korotaev <unC0Rr@gmail.com>
     4  * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
     5  *
     5  *
     6  * This program is free software; you can redistribute it and/or modify
     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
     7  * it under the terms of the GNU General Public License as published by
     8  * the Free Software Foundation; version 2 of the License
     8  * the Free Software Foundation; version 2 of the License
     9  *
     9  *
    40         Q_OBJECT
    40         Q_OBJECT
    41 
    41 
    42     public:
    42     public:
    43         HWMap(QObject *parent = 0);
    43         HWMap(QObject *parent = 0);
    44         virtual ~HWMap();
    44         virtual ~HWMap();
    45         void getImage(const QString & seed, int templateFilter, MapGenerator mapgen, int maze_size, const QByteArray & drawMapData, QString & script, int feature_size);
    45         void getImage(const QString & seed, int templateFilter, MapGenerator mapgen, int maze_size, const QByteArray & drawMapData, QString & script, QString & scriptparam, int feature_size);
    46         bool couldBeRemoved();
    46         bool couldBeRemoved();
    47 
    47 
    48     protected:
    48     protected:
    49         virtual QStringList getArguments();
    49         virtual QStringList getArguments();
    50         virtual void onClientDisconnect();
    50         virtual void onClientDisconnect();
    55         void HHLimitReceived(int hhLimit);
    55         void HHLimitReceived(int hhLimit);
    56 
    56 
    57     private:
    57     private:
    58         QString m_seed;
    58         QString m_seed;
    59         QString m_script;
    59         QString m_script;
       
    60         QString m_scriptparam;
    60         int templateFilter;
    61         int templateFilter;
    61         MapGenerator m_mapgen;
    62         MapGenerator m_mapgen;
    62         int m_maze_size;  // going to try and deprecate this one
    63         int m_maze_size;  // going to try and deprecate this one
    63         int m_feature_size;
    64         int m_feature_size;
    64         QByteArray m_drawMapData;
    65         QByteArray m_drawMapData;