QTfrontend/netclient.h
changeset 85 44d9045b26ff
parent 84 0f6669da2fcb
child 97 e7c1df9cce2c
equal deleted inserted replaced
84:0f6669da2fcb 85:44d9045b26ff
    48 {
    48 {
    49 	QString nick;
    49 	QString nick;
    50 	QStringList hhs;
    50 	QStringList hhs;
    51 };
    51 };
    52 
    52 
    53 class GameConfig;
    53 class GameUIConfig;
    54 
    54 
    55 class HWNet : public QObject
    55 class HWNet : public QObject
    56 {
    56 {
    57 	Q_OBJECT
    57 	Q_OBJECT
    58 
    58 
    59 public:
    59 public:
    60     HWNet(GameConfig * config);
    60     HWNet(GameUIConfig * config);
    61 	void Connect(const QString & hostName, quint16 port, const QString & nick);
    61 	void Connect(const QString & hostName, quint16 port, const QString & nick);
    62 	void Disconnect();
    62 	void Disconnect();
    63 	void JoinGame(const QString & game);
    63 	void JoinGame(const QString & game);
    64 	void AddTeam(const HWTeam & team);
    64 	void AddTeam(const HWTeam & team);
    65 	void StartGame();
    65 	void StartGame();
   104 	RNDStr seedgen;
   104 	RNDStr seedgen;
   105 	int playerscnt;
   105 	int playerscnt;
   106 	int configasks;
   106 	int configasks;
   107 	QByteArray NetBuffer;
   107 	QByteArray NetBuffer;
   108 	QTimer * TimerFlusher;
   108 	QTimer * TimerFlusher;
   109 	GameConfig * config;
   109 	GameUIConfig * config;
   110 
   110 
   111 	void RawSendNet(const QString & buf);
   111 	void RawSendNet(const QString & buf);
   112 	void RawSendNet(const QByteArray & buf);
   112 	void RawSendNet(const QByteArray & buf);
   113 
   113 
   114 	void ParseLine(const QString & msg);
   114 	void ParseLine(const QString & msg);