| 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2009 by The qGo Project * |
| 3 | * * |
| 4 | * This file is part of qGo. * |
| 5 | * * |
| 6 | * qGo is free software: you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/> * |
| 18 | * or write to the Free Software Foundation, Inc., * |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | |
| 23 | #define ORO_CODETABLEcxx . . $ `src/network/cyberoroprotocol.h:23:9`! 0x00fa |
| 24 | #define ORO_ROOMLISTcxx . . $ `src/network/cyberoroprotocol.h:24:9`! 0xc661 |
| 25 | #define ORO_PLAYERLISTcxx . . $ `src/network/cyberoroprotocol.h:25:9`! 0xd061 |
| 26 | #define ORO_GAMELISTcxx . . $ `src/network/cyberoroprotocol.h:26:9`! 0xda61 |
| 27 | #define ORO_BROADCASTLISTcxx . . $ `src/network/cyberoroprotocol.h:27:9`! 0xf861 |
| 28 | |
| 29 | #define ORO_PLAYERROOMJOINcxx . . $ `src/network/cyberoroprotocol.h:29:9`! 0x0e56 |
| 30 | #define ORO_CREATEROOMcxx . . $ `src/network/cyberoroprotocol.h:30:9`! 0xca5d |
| 31 | |
| 32 | #define ORO_MOVEcxx . . $ `src/network/cyberoroprotocol.h:32:9`! 0xdcaf |
| 33 | #define ORO_BROADCASTMOVEcxx . . $ `src/network/cyberoroprotocol.h:33:9`! 0x42f4 |
| 34 | #define ORO_UNDOcxx . . $ `src/network/cyberoroprotocol.h:34:9`! 0xe6af |
| 35 | #define ORO_DECLINEUNDOcxx . . $ `src/network/cyberoroprotocol.h:35:9`! 0xf0af |
| 36 | #define ORO_ACCEPTUNDOcxx . . $ `src/network/cyberoroprotocol.h:36:9`! 0xebaf |
| 37 | #define ORO_MOVELISTcxx . . $ `src/network/cyberoroprotocol.h:37:9`! 0xd7af |
| 38 | #define ORO_BROADCASTMOVELISTcxx . . $ `src/network/cyberoroprotocol.h:38:9`! 0x4cf4 |
| 39 | |
| 40 | #define ORO_ENTERSCORINGcxx . . $ `src/network/cyberoroprotocol.h:40:9`! 0xc9b3 |
| 41 | #define ORO_REMOVESTONEScxx . . $ `src/network/cyberoroprotocol.h:41:9`! 0xe2b3 |
| 42 | #define ORO_STONESDONEcxx . . $ `src/network/cyberoroprotocol.h:42:9`! 0xf1b3 |
| 43 | #define ORO_RESIGNcxx . . $ `src/network/cyberoroprotocol.h:43:9`! 0xb0b3 |
| 44 | #define ORO_TIMELOSScxx . . $ `src/network/cyberoroprotocol.h:44:9`! 0xf6b3 |
| 45 | #define ORO_ADJOURNREQUESTcxx . . $ `src/network/cyberoroprotocol.h:45:9`! 0xb5b3 |
| 46 | #define ORO_ADJOURNDECLINEcxx . . $ `src/network/cyberoroprotocol.h:46:9`! 0xbfb3 |
| 47 | #define ORO_ADJOURNcxx . . $ `src/network/cyberoroprotocol.h:47:9`! 0xbab3 |
| 48 | |
| 49 | #define ORO_SETPHRASECHATcxx . . $ `src/network/cyberoroprotocol.h:49:9`! 0x55c3 |
| 50 | #define ORO_LOBBYCHATcxx . . $ `src/network/cyberoroprotocol.h:50:9`! 0x0a5a |
| 51 | #define ORO_ROOMCHATcxx . . $ `src/network/cyberoroprotocol.h:51:9`! 0xec59 |
| 52 | #define ORO_PERSONALCHATcxx . . $ `src/network/cyberoroprotocol.h:52:9`! 0xe259 |
| 53 | #define ORO_SERVERANNOUNCEcxx . . $ `src/network/cyberoroprotocol.h:53:9`! 0xf659 |
| 54 | #define ORO_SERVERANNOUNCELINKcxx . . $ `src/network/cyberoroprotocol.h:54:9`! 0x645a |
| 55 | |
| 56 | #define ORO_MATCHOFFERcxx . . $ `src/network/cyberoroprotocol.h:56:9`! 0xc8af |
| 57 | |
| 58 | /* We need a subclass of a packet structure |
| 59 | * with a send method that does necessary |
| 60 | * encoding and a different subclass for |
| 61 | * each message type so we can just fill |
| 62 | * it out and make the code clean. |
| 63 | * doublecheck sizeof() stuff */ |