summaryrefslogtreecommitdiffstats
path: root/sigencore/Client.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-05 23:13:11 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-05 23:13:11 -0500
commit918fe93139a497645d43b9e390ca2948f340ad20 (patch)
tree380d24c0f29640efe2593a589b70c7b68f946e69 /sigencore/Client.cpp
parent222a422c3339a4e368cc7b53e83a489e181ba0eb (diff)
downloadsigen-918fe93139a497645d43b9e390ca2948f340ad20.tar.gz
sigen-918fe93139a497645d43b9e390ca2948f340ad20.tar.xz
sigen-918fe93139a497645d43b9e390ca2948f340ad20.zip
Stripped old code from Client and cleaned up
Diffstat (limited to 'sigencore/Client.cpp')
-rw-r--r--sigencore/Client.cpp69
1 files changed, 7 insertions, 62 deletions
diff --git a/sigencore/Client.cpp b/sigencore/Client.cpp
index aada4d0a..715863a0 100644
--- a/sigencore/Client.cpp
+++ b/sigencore/Client.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,75 +18,20 @@
// Header include
#include "Client.h"
-// Signet includes
-#include "Room.h"
-#include "Server.h"
-#include "Table.h"
-
-// Qt includes
-#include <QtNetwork/QHostAddress>
-#include <QtNetwork/QTcpSocket>
-
-Signet::Client::Client(QTcpSocket* socket, QObject* parent) :
- QObject(parent)
-{
-}
-
-Signet::Client::~Client()
-{
-}
-
-void Signet::Client::setServer(Server* server)
-{
-}
-
-void Signet::Client::joinRoom(Room* room)
-{
-// if (!m_rooms.contains(room))
-// {
-// room->addClient(this);
-// m_rooms[room];
-// }
-}
-
-void Signet::Client::leaveRoom(Room* room)
-{
-// QList<Table*> tables = QList<Table*>::fromSet(m_rooms[room]);
-// foreach (Table* table, tables)
-// table->removeClient(this);
-// room->removeClient(this);
-}
-
-void Signet::Client::joinTable(Room* room, Table* table)
-{
-// if (!m_rooms.contains(room))
-// joinRoom(room);
-}
-
-void Signet::Client::leaveTable(Room* room, Table* table)
+Sigencore::Client::Client(Sigscript::Config* parent) :
+ Sigscript::Config(parent)
{
-// if (m_rooms.contains(room) && m_rooms[room].contains(table))
-// {
-// table->removeClient(this);
-// m_rooms[room].remove(table);
-// }
}
-void Signet::Client::sendData(const QByteArray& data)
+Sigencore::Client::~Client()
{
-// m_socket->write(data);
-// m_socket->waitForBytesWritten();
}
-void Signet::Client::disconnectFromServer()
+void Sigencore::Client::enterArena(Arena* arena)
{
- disconnectFromAllRooms();
-// m_server->removeClient(this);
+ Q_UNUSED(arena)
}
-void Signet::Client::disconnectFromAllRooms()
+void Sigencore::Client::exitArena()
{
-// QList<Room*> rooms = m_rooms.keys();
-// foreach (Room* room, rooms)
-// leaveRoom(room);
}