equal
deleted
inserted
replaced
40 #include <QByteArray> |
40 #include <QByteArray> |
41 #include <QString> |
41 #include <QString> |
42 #include <QDir> |
42 #include <QDir> |
43 #include <QProcess> |
43 #include <QProcess> |
44 #include "team.h" |
44 #include "team.h" |
45 #include "rndstr.h" |
|
46 |
45 |
47 #define IPC_PORT 46631 |
46 #define IPC_PORT 46631 |
48 #define MAXMSGCHARS 255 |
47 #define MAXMSGCHARS 255 |
49 #define SENDIPC(a) SendIPC(a, sizeof(a) - 1) |
48 #define SENDIPC(a) SendIPC(a, sizeof(a) - 1) |
50 |
49 |
81 char msgbuf[MAXMSGCHARS]; |
80 char msgbuf[MAXMSGCHARS]; |
82 QByteArray readbuffer; |
81 QByteArray readbuffer; |
83 QString teams[5]; |
82 QString teams[5]; |
84 QString seed; |
83 QString seed; |
85 int TeamCount; |
84 int TeamCount; |
86 RNDStr seedgen; |
|
87 QByteArray * demo; |
85 QByteArray * demo; |
88 QByteArray toSendBuf; |
86 QByteArray toSendBuf; |
89 GameUIConfig * config; |
87 GameUIConfig * config; |
90 GameCFGWidget * gamecfg; |
88 GameCFGWidget * gamecfg; |
91 GameType gameType; |
89 GameType gameType; |
97 void SendIPC(const char * msg, quint8 len); |
95 void SendIPC(const char * msg, quint8 len); |
98 void SendIPC(const QByteArray & buf); |
96 void SendIPC(const QByteArray & buf); |
99 void SendIPC(const QString & buf); |
97 void SendIPC(const QString & buf); |
100 void RawSendIPC(const QByteArray & buf); |
98 void RawSendIPC(const QByteArray & buf); |
101 void SaveDemo(const QString & filename); |
99 void SaveDemo(const QString & filename); |
102 QString GetThemeBySeed(); |
|
103 |
100 |
104 private slots: |
101 private slots: |
105 void NewConnection(); |
102 void NewConnection(); |
106 void ClientDisconnect(); |
103 void ClientDisconnect(); |
107 void ClientRead(); |
104 void ClientRead(); |