Update of /home/kde/kdegames/atlantik/libatlantikclient In directory office:/tmp/cvs-serv23541/libatlantikclient Modified Files: Makefile.am Added Files: monopdprotocol.cpp monopdprotocol.h Log Message: port is hardly relevant for users, so hide it --- NEW FILE: monopdprotocol.cpp --- // Copyright (c) 2002 Rob Kaper // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License version 2.1 as published by the Free Software Foundation. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this library; see the file COPYING.LIB. If not, write to // the Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. #include /* #include #include #include #include #include #include */ #include #include "monopdprotocol.h" #include "monopdprotocol.moc" MonopdProtocol::MonopdProtocol() : QObject() { } void MonopdProtocol::auctionEstate() { sendData(QString::fromLatin1(".ea")); } void MonopdProtocol::buyEstate() { sendData(QString::fromLatin1(".eb")); } void MonopdProtocol::confirmTokenLocation(Estate *estate) { QString data(".t"); data.append(QString::number(estate ? estate->estateId() : -1)); sendData(data); } void MonopdProtocol::endTurn() { sendData(QString::fromLatin1(".E")); } void MonopdProtocol::rollDice() { sendData(QString::fromLatin1(".r")); } void MonopdProtocol::setName(QString name) { QString data(".n"); data.append(name); sendData(data); } void MonopdProtocol::startGame() { sendData(QString::fromLatin1(".gs")); } void MonopdProtocol::sendData(QString) { // Your reimplementation of this method should send send data over the // network. } --- NEW FILE: monopdprotocol.h --- // Copyright (c) 2002 Rob Kaper // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License version 2.1 as published by the Free Software Foundation. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this library; see the file COPYING.LIB. If not, write to // the Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // WARNING: this codebase is not being used yet. Please use AtlantikNetwork // until the protocol seperation has been completed. #ifndef MONOPDPROTOCOL_H_H #define MONOPDPROTOCOL_H_H #include class QString; /* class AtlanticCore; class Player; class EstateGroup; class Trade; class Auction; */ class Estate; class MonopdProtocol : public QObject { Q_OBJECT public: MonopdProtocol(); private slots: void auctionEstate(); void buyEstate(); void confirmTokenLocation(Estate *estate); void endTurn(); void rollDice(); void setName(QString name); void startGame(); private: virtual void sendData(QString data); }; #endif Index: Makefile.am =================================================================== RCS file: /home/kde/kdegames/atlantik/libatlantikclient/Makefile.am,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Makefile.am 2002/06/28 13:22:22 1.7 +++ Makefile.am 2002/06/29 13:35:12 1.8 @@ -3,8 +3,8 @@ libatlantikclient_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 0:0:0 libatlantikclient_la_LIBADD = ../libatlantic/libatlantic.la $(LIB_KIO) -libatlantikclient_la_SOURCES = atlantik_network.cpp +libatlantikclient_la_SOURCES = atlantik_network.cpp monopdprotocol.cpp -noinst_HEADERS = atlantik_network.h +noinst_HEADERS = atlantik_network.h monopdprotocol.h METASOURCES = AUTO _______________________________________________ atlantik-devel mailing list atlantik-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/atlantik-devel