mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
30 lines
672 B
C++
30 lines
672 B
C++
#ifndef LOCALCLIENT_H
|
|
#define LOCALCLIENT_H
|
|
|
|
#include "../client/game_logic/abstract_client.h"
|
|
|
|
#include <QLoggingCategory>
|
|
|
|
inline Q_LOGGING_CATEGORY(LocalClientLog, "local_client");
|
|
|
|
class LocalServerInterface;
|
|
|
|
class LocalClient : public AbstractClient
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
LocalServerInterface *lsi;
|
|
|
|
public:
|
|
LocalClient(LocalServerInterface *_lsi,
|
|
const QString &_playerName,
|
|
const QString &_clientId,
|
|
QObject *parent = nullptr);
|
|
~LocalClient() override;
|
|
|
|
void sendCommandContainer(const CommandContainer &cont) override;
|
|
private slots:
|
|
void itemFromServer(const ServerMessage &item);
|
|
};
|
|
|
|
#endif
|