equal
deleted
inserted
replaced
25 |
25 |
26 #include "team.h" |
26 #include "team.h" |
27 |
27 |
28 class GameUIConfig; |
28 class GameUIConfig; |
29 class GameCFGWidget; |
29 class GameCFGWidget; |
|
30 class TeamSelWidget; |
30 |
31 |
31 extern char delimeter; |
32 extern char delimeter; |
32 |
33 |
33 class HWNewNet : public QObject |
34 class HWNewNet : public QObject |
34 { |
35 { |
35 Q_OBJECT |
36 Q_OBJECT |
36 |
37 |
37 public: |
38 public: |
38 HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget); |
39 HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget, TeamSelWidget* pTeamSelWidget); |
39 void Connect(const QString & hostName, quint16 port, const QString & nick); |
40 void Connect(const QString & hostName, quint16 port, const QString & nick); |
40 void Disconnect(); |
41 void Disconnect(); |
41 void JoinGame(const QString & game); |
42 void JoinGame(const QString & game); |
42 void StartGame(); |
43 void StartGame(); |
43 |
44 |
44 private: |
45 private: |
45 GameUIConfig* config; |
46 GameUIConfig* config; |
46 GameCFGWidget* m_pGameCFGWidget; |
47 GameCFGWidget* m_pGameCFGWidget; |
|
48 TeamSelWidget* m_pTeamSelWidget; |
47 |
49 |
48 bool isChief; |
50 bool isChief; |
49 QString mynick; |
51 QString mynick; |
50 QTcpSocket NetSocket; |
52 QTcpSocket NetSocket; |
51 QString seed; |
53 QString seed; |
81 void Disconnected(); |
83 void Disconnected(); |
82 void AddGame(const QString & chan); |
84 void AddGame(const QString & chan); |
83 void EnteredGame(); |
85 void EnteredGame(); |
84 void FromNet(const QByteArray & buf); |
86 void FromNet(const QByteArray & buf); |
85 void LocalCFG(const QString & team); |
87 void LocalCFG(const QString & team); |
86 void AddNetTeam(const QString&); |
88 void AddNetTeam(const HWTeam&); |
87 |
89 |
88 void seedChanged(const QString & seed); |
90 void seedChanged(const QString & seed); |
89 void mapChanged(const QString & map); |
91 void mapChanged(const QString & map); |
90 void themeChanged(const QString & theme); |
92 void themeChanged(const QString & theme); |
91 void initHealthChanged(quint32 health); |
93 void initHealthChanged(quint32 health); |