2 * Cards dll definitions
4 * Copyright (C) 2004 Sami Nopanen
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #define CARD_SUIT_CLUBS 0
26 #define CARD_SUIT_DIAMONDS 1
27 #define CARD_SUIT_HEARTS 2
28 #define CARD_SUIT_SPADES 3
31 /* 0-51 = normal 52 cards of deck */
32 /* 52 = ghost card mask */
33 /* 53-68 = card backs */
34 #define CARD_FREE_MASK 52
35 #define CARD_BACK_CROSSHATCH 53
36 #define CARD_BACK_WEAVE1 54
37 #define CARD_BACK_WEAVE2 55
38 #define CARD_BACK_ROBOT 56
39 #define CARD_BACK_FLOWERS 57
40 #define CARD_BACK_VINE1 58
41 #define CARD_BACK_VINE2 59
42 #define CARD_BACK_FISH1 60
43 #define CARD_BACK_FISH2 61
44 #define CARD_BACK_SHELLS 62
45 #define CARD_BACK_CASTLE 63
46 #define CARD_BACK_ISLAND 64
47 #define CARD_BACK_CARDHAND 65
48 #define CARD_BACK_UNUSED 66
49 #define CARD_BACK_THE_X 67
50 #define CARD_BACK_THE_O 68
56 #define MODE_FACEDOWN 1
60 #define MODE_INVISIBLEGHOST 5
64 #define MODEFLAG_DONT_ROUND_CORNERS 0x80000000
66 /* As defined by CARD_SUIT_* */
67 #define SUIT_FROM_CARD(card) (card & 3)
68 /* 0 = ace, ..., 12 = king */
69 #define FACE_FROM_CARD(card) (card >> 2)