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 #include "globals.hpp" 25 26 GtkWidget* mainwin = (GtkWidget*) NULL; 27 GtkWidget* prefdiag = (GtkWidget*) NULL; 28 GtkWidget* prevdiag = (GtkWidget*) NULL; 29 30 GtkWidget* cardPixmaps[(Card::Ace+1)][(Card::Spades+1)] = 31 { { (GtkWidget*) NULL } }; 32 33 GtkWidget* origPlayerPixmaps[(Common::CARDS_PER_HAND+1)] = 34 { (GtkWidget*) NULL }; 35 36 GtkWidget* bidSuitPixmaps[(Card::Spades+1)] = { (GtkWidget*) NULL }; 37 GtkWidget* bidCallPixmaps[2] = { (GtkWidget*) NULL }; 38 39 GtkWidget* bidEmptyPixmaps[(Common::PLAYERS_PER_GAME)] = 40 { (GtkWidget*) NULL }; 41 42 GtkWidget* bidSuitEmptyPixmaps[(Common::PLAYERS_PER_GAME)] = 43 { (GtkWidget*) NULL }; 44 45 GdkPixmap* cardbackPixmaps[NUM_CARD_BACK_MAPS][NUM_CARD_BACKS] = 46 { { (GdkPixmap*) NULL } }; 47 48 GdkBitmap* cardbackBitmaps[NUM_CARD_BACK_MAPS][NUM_CARD_BACKS] = 49 { { (GdkBitmap*) NULL } }; 50 51 GdkPixmap* cardbackSelectPixmaps[NUM_CARD_BACKS] = { (GdkPixmap*) NULL }; 52 GdkBitmap* cardbackSelectBitmaps[NUM_CARD_BACKS] = { (GdkBitmap*) NULL }; 53 54 GtkWidget* passMarkers[(Common::PLAYERS_PER_GAME)] = { (GtkWidget*) NULL }; 55 GtkWidget* emptyMarkers[(Common::PLAYERS_PER_GAME)] = { (GtkWidget*) NULL }; 56 57 GuiGame* theGame; 58