equal
deleted
inserted
replaced
40 #include <QStringList> |
40 #include <QStringList> |
41 #include <QTimer> |
41 #include <QTimer> |
42 #include "team.h" |
42 #include "team.h" |
43 #include "rndstr.h" |
43 #include "rndstr.h" |
44 |
44 |
45 #define MAGIC_CHAR "\x02" |
45 #define MAGIC_CHAR "\x2f" |
46 |
46 |
47 struct netTeam |
47 struct netTeam |
48 { |
48 { |
49 QString nick; |
49 QString nick; |
50 QStringList hhs; |
50 QStringList hhs; |
95 QRegExp * IRCmsg_who_cmd_target_text; |
95 QRegExp * IRCmsg_who_cmd_target_text; |
96 QRegExp * IRCmsg_who_cmd_text; |
96 QRegExp * IRCmsg_who_cmd_text; |
97 QString mynick; |
97 QString mynick; |
98 QString opnick; |
98 QString opnick; |
99 QString channel; |
99 QString channel; |
|
100 QString seed; |
100 bool isOp; |
101 bool isOp; |
101 quint32 opCount; |
102 quint32 opCount; |
102 netTeam teams[5]; |
103 netTeam teams[5]; |
103 quint8 teamsCount; |
104 quint8 teamsCount; |
104 RNDStr seedgen; |
105 RNDStr seedgen; |
121 void hwp_opmsg(const QString & who, const QString & msg); |
122 void hwp_opmsg(const QString & who, const QString & msg); |
122 void hwp_chanmsg(const QString & who, const QString & msg); |
123 void hwp_chanmsg(const QString & who, const QString & msg); |
123 void ConfigAsked(); |
124 void ConfigAsked(); |
124 void NetTeamAdded(const QString & msg); |
125 void NetTeamAdded(const QString & msg); |
125 |
126 |
126 void RunGame(const QString & seed); |
127 void RunGame(); |
127 |
128 |
128 |
129 |
129 private slots: |
130 private slots: |
130 void ClientRead(); |
131 void ClientRead(); |
131 void OnConnect(); |
132 void OnConnect(); |