mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
more code for local playing
This commit is contained in:
parent
f6a340ddf3
commit
5ff099f4bc
15 changed files with 267 additions and 137 deletions
|
|
@ -2,11 +2,11 @@
|
|||
#include "localserverinterface.h"
|
||||
#include "protocol.h"
|
||||
|
||||
LocalClient::LocalClient(LocalServerInterface *_lsi, QObject *parent)
|
||||
LocalClient::LocalClient(LocalServerInterface *_lsi, const QString &_playerName, QObject *parent)
|
||||
: AbstractClient(parent), lsi(_lsi)
|
||||
{
|
||||
connect(lsi, SIGNAL(itemToClient(ProtocolItem *)), this, SLOT(itemFromServer(ProtocolItem *)));
|
||||
sendCommand(new Command_Login("Player", QString()));
|
||||
sendCommand(new Command_Login(_playerName, QString()));
|
||||
}
|
||||
|
||||
LocalClient::~LocalClient()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue