/* * libmaitretarot. * Copyright (C) 2002 Yves Mettier * Code taken from the MyAM project, also (c) Yves Mettier * 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 the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * This program 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 General Public License for * more details. * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 59 * Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef MAITRETAROT_H #define MAITRETAROT_H #include #include #include #include #include #define SERVER_PORT 2551 #define PROTOCOL 1 /* K:King, Q:Queen, C:Cavalier, J:Jack, F:Fool */ /* c:Club/Trefle, s:Spade/Pique, h:Heart/Coeur, d:Diamond/Carreau */ #define CLUB 0 #define SPADE 14 #define HEART 28 #define DIAMOND 42 #define TRUMP 56 #define FOOL 77 #define MAX_PLAYER 5 #define MAX_HAND_CARD 24 #define MAX_CARD_CHIEN 6 #define NUMBER_OF_CARD 78 /* the bet names */ typedef enum { LIBMT_BID_PASSE = 0, LIBMT_BID_PRISE = 1, LIBMT_BID_GARDE = 2, LIBMT_BID_SANS = 3, LIBMT_BID_CONTRE = 4 } libmt_bid_e; #define LIBMT_BID_CMP(a,b) ((a==b)?0:((a