From 918fe93139a497645d43b9e390ca2948f340ad20 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 5 Feb 2009 23:13:11 -0500 Subject: Stripped old code from Client and cleaned up --- sigencore/Client.cpp | 69 ++++++---------------------------------------------- 1 file changed, 7 insertions(+), 62 deletions(-) (limited to 'sigencore/Client.cpp') 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 + * Copyright 2008-2009 Ben Boeckel * * 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 -#include - -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 tables = QList::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 rooms = m_rooms.keys(); -// foreach (Room* room, rooms) -// leaveRoom(room); } -- cgit