equal
deleted
inserted
replaced
30 |
30 |
31 class HWConnectedClient : public QObject |
31 class HWConnectedClient : public QObject |
32 { |
32 { |
33 Q_OBJECT |
33 Q_OBJECT |
34 |
34 |
35 public: |
35 friend class HWNetServer; |
|
36 |
|
37 private: |
36 HWConnectedClient(HWNetServer* hwserver, QTcpSocket* client); |
38 HWConnectedClient(HWNetServer* hwserver, QTcpSocket* client); |
37 ~HWConnectedClient(); |
39 ~HWConnectedClient(); |
38 QString getClientNick() const; |
40 QString getClientNick() const; |
39 |
41 |
40 class NoTeamNameException{}; |
42 class NoTeamNameException{}; |
42 void teamChangedNotify(); |
44 void teamChangedNotify(); |
43 bool isReady() const; |
45 bool isReady() const; |
44 |
46 |
45 QString getHedgehogsDescription() const; |
47 QString getHedgehogsDescription() const; |
46 |
48 |
47 private: |
|
48 bool readyToStart; |
49 bool readyToStart; |
|
50 QStringList gameCfg; |
49 class ShouldDisconnectException {}; |
51 class ShouldDisconnectException {}; |
50 |
52 |
51 QString client_nick; |
53 QString client_nick; |
52 void ParseLine(const QByteArray & line); |
54 void ParseLine(const QByteArray & line); |
53 |
55 |
73 Q_OBJECT |
75 Q_OBJECT |
74 |
76 |
75 public: |
77 public: |
76 void StartServer(); |
78 void StartServer(); |
77 void StopServer(); |
79 void StopServer(); |
|
80 bool isCheefClient(HWConnectedClient* cl) const; |
|
81 void startAll(QString gameCfg); |
78 bool haveNick(const QString& nick) const; |
82 bool haveNick(const QString& nick) const; |
79 QString getRunningHostName() const; |
83 QString getRunningHostName() const; |
80 quint16 getRunningPort() const; |
84 quint16 getRunningPort() const; |
81 QStringList getTeams() const; |
85 QStringList getTeams() const; |
82 void teamChanged(); |
86 void teamChanged(); |