/*1* Cards dll definitions2*3* Copyright (C) 2004 Sami Nopanen4*5* This library is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* This library is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with this library; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA18*/1920#ifndef __CARDS_H__21#define __CARDS_H__2223/* Card suits */24#define CARD_SUIT_CLUBS 025#define CARD_SUIT_DIAMONDS 126#define CARD_SUIT_HEARTS 227#define CARD_SUIT_SPADES 3282930/* 0-51 = normal 52 cards of deck */31/* 52 = ghost card mask */32/* 53-68 = card backs */33#define CARD_FREE_MASK 5234#define CARD_BACK_CROSSHATCH 5335#define CARD_BACK_WEAVE1 5436#define CARD_BACK_WEAVE2 5537#define CARD_BACK_ROBOT 5638#define CARD_BACK_FLOWERS 5739#define CARD_BACK_VINE1 5840#define CARD_BACK_VINE2 5941#define CARD_BACK_FISH1 6042#define CARD_BACK_FISH2 6143#define CARD_BACK_SHELLS 6244#define CARD_BACK_CASTLE 6345#define CARD_BACK_ISLAND 6446#define CARD_BACK_CARDHAND 6547#define CARD_BACK_UNUSED 6648#define CARD_BACK_THE_X 6749#define CARD_BACK_THE_O 685051#define CARD_MAX 685253/* Drawing modes */54#define MODE_FACEUP 055#define MODE_FACEDOWN 156#define MODE_HILITE 257#define MODE_GHOST 358#define MODE_REMOVE 459#define MODE_INVISIBLEGHOST 560#define MODE_DECKX 661#define MODE_DECKO 76263#define MODEFLAG_DONT_ROUND_CORNERS 0x800000006465/* As defined by CARD_SUIT_* */66#define SUIT_FROM_CARD(card) (card & 3)67/* 0 = ace, ..., 12 = king */68#define FACE_FROM_CARD(card) (card >> 2)6970#endif717273