File indexing completed on 2024-09-08 12:25:01
0001 // Copyright (c) 2002 Rob Kaper <cap@capsi.com> 0002 // 0003 // This library is free software; you can redistribute it and/or 0004 // modify it under the terms of the GNU Lesser General Public 0005 // License version 2.1 as published by the Free Software Foundation. 0006 // 0007 // This library is distributed in the hope that it will be useful, 0008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0010 // Lesser General Public License for more details. 0011 // 0012 // You should have received a copy of the GNU Lesser General Public License 0013 // along with this library; see the file COPYING.LIB. If not, write to 0014 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0015 // Boston, MA 02110-1301, USA. 0016 0017 // WARNING: this codebase is not being used yet. Please use AtlantikNetwork 0018 // until the protocol separation has been completed. 0019 0020 #ifndef MONOPDPROTOCOL_H_H 0021 #define MONOPDPROTOCOL_H_H 0022 0023 #include <QObject> 0024 0025 /* 0026 0027 */ 0028 0029 class Estate; 0030 0031 class MonopdProtocol : public QObject 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 MonopdProtocol(); 0037 0038 private Q_SLOTS: 0039 void auctionEstate(); 0040 void buyEstate(); 0041 void confirmTokenLocation(Estate *estate); 0042 void endTurn(); 0043 void rollDice(); 0044 void setName(const QString &name); 0045 void startGame(); 0046 0047 private: 0048 virtual void sendData(const QString &data); 0049 }; 0050 0051 #endif