mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-08 23:49:42 +00:00
22 lines
412 B
C++
22 lines
412 B
C++
#ifndef CLIENT_H
|
|
#define CLIENT_H
|
|
|
|
#include "playerclientdata.h"
|
|
|
|
#include <client.h>
|
|
|
|
class NetworkClient : public ClientProtocol::Client
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QHash<int, PlayerClientData> _playersDats;
|
|
int _loginedPlayer;
|
|
private slots:
|
|
void handleReceiveData(ClientProtocol::Command cmd, const QByteArray& obj);
|
|
public:
|
|
NetworkClient();
|
|
int loginedPlayer() const;
|
|
};
|
|
|
|
#endif // CLIENT_H
|