1 /*
2 
3     Euchre - a free as in freedom and as in beer version of the
4              euchre card game
5 
6     Copyright 2002 C Nathan Buckles (nbuckles@bigfoot.com)
7 
8     This program is free software; you can redistribute it and/or modify
9     it under the terms of the GNU General Public License as published by
10     the Free Software Foundation; either version 2 of the License, or
11     (at your option) any later version.
12 
13     This program is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU General Public License for more details.
17 
18     You should have received a copy of the GNU General Public License
19     along with this program; if not, write to the Free Software
20     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 
22 */
23 
24 #ifndef GLOBALS_H
25 #define GLOBALS_H
26 
27 #include <gtk/gtk.h>
28 
29 #include <Common.hpp>
30 #include <pixmaps.hpp>
31 #include <Card.hpp>
32 #include <GuiGame.hpp>
33 #include <GuiOptions.hpp>
34 
35 extern GtkWidget*  mainwin;
36 extern GtkWidget*  prefdiag;
37 extern GtkWidget*  prevdiag;
38 extern GtkWidget*  cardPixmaps[(Card::Ace+1)][(Card::Spades+1)];
39 extern GtkWidget*  origPlayerPixmaps[(Common::CARDS_PER_HAND+1)];
40 
41 extern GtkWidget*  bidSuitPixmaps[(Card::Spades+1)];
42 extern GtkWidget*  bidCallPixmaps[2];
43 
44 extern GtkWidget*  bidEmptyPixmaps[(Common::PLAYERS_PER_GAME)];
45 extern GtkWidget*  bidSuitEmptyPixmaps[(Common::PLAYERS_PER_GAME)];
46 
47 #define NUM_CARD_BACK_MAPS 14
48 extern GdkPixmap*  cardbackPixmaps[NUM_CARD_BACK_MAPS][NUM_CARD_BACKS];
49 extern GdkBitmap*  cardbackBitmaps[NUM_CARD_BACK_MAPS][NUM_CARD_BACKS];
50 
51 extern GdkPixmap*  cardbackSelectPixmaps[NUM_CARD_BACKS];
52 extern GdkBitmap*  cardbackSelectBitmaps[NUM_CARD_BACKS];
53 
54 extern GtkWidget*  passMarkers[(Common::PLAYERS_PER_GAME)];
55 extern GtkWidget*  emptyMarkers[(Common::PLAYERS_PER_GAME)];
56 
57 extern GuiGame*    theGame;
58 
59 #endif
60