QTfrontend/netserver.h
changeset 404 64a62b679b04
parent 399 c7da1bd32b4e
child 420 6cdfc07dceed
equal deleted inserted replaced
403:282b00e559bd 404:64a62b679b04
    45   bool isReady() const;
    45   bool isReady() const;
    46 
    46 
    47   QString getHedgehogsDescription() const;
    47   QString getHedgehogsDescription() const;
    48 
    48 
    49   bool readyToStart;
    49   bool readyToStart;
    50   QMap<QString, QStringList> m_gameCfg; // config_param - value
       
    51   QList<QStringList> m_teamsCfg; // TeamName - hhs
    50   QList<QStringList> m_teamsCfg; // TeamName - hhs
    52   class ShouldDisconnectException {};
    51   class ShouldDisconnectException {};
    53 
    52 
    54   QString client_nick;
    53   QString client_nick;
    55   void ParseLine(const QByteArray & line);
    54   void ParseLine(const QByteArray & line);
    89   void teamChanged();
    88   void teamChanged();
    90   bool shouldStart(HWConnectedClient* client);
    89   bool shouldStart(HWConnectedClient* client);
    91   QString prepareConfig(QStringList lst);
    90   QString prepareConfig(QStringList lst);
    92   void resetStart();
    91   void resetStart();
    93 
    92 
       
    93   QMap<QString, QStringList> m_gameCfg; // config_param - value
    94   int hhnum;
    94   int hhnum;
    95 
    95 
    96  private:
    96  private:
    97   HWConnectedClient* getChiefClient() const;
    97   HWConnectedClient* getChiefClient() const;
    98   static const quint16 ds_port;
    98   static const quint16 ds_port;