This is the doxygen documentation for gtkboard.
.00001 /* This file is a part of gtkboard, a board games system. 00002 Copyright (C) 2003, Arvind Narayanan <arvindn@users.sourceforge.net> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA 00017 00018 */ 00019 #ifndef _GTKBOARD_H_ 00020 #define _GTKBOARD_H_ 00021 00022 #include <gdk/gdk.h> 00023 #include <gtk/gtk.h> 00024 #include <stdio.h> 00025 #include "game.h" 00026 00027 // FIXME: confusing name. Make this 2 macros: human_to_move and machine_to_move 00028 #define player_to_play (cur_pos.player == WHITE ? ui_white : ui_black) 00029 00030 enum {NONE, HUMAN, MACHINE}; 00031 00032 extern Game *games[]; 00033 00034 extern Pos cur_pos; 00035 00036 extern const int num_games; 00037 00038 extern FILE *move_fin, *move_fout; 00039 00040 extern int state_player; 00041 00042 extern gboolean engine_flag; 00043 00044 extern gboolean ui_stopped; 00045 extern gboolean ui_cheated; 00046 extern gboolean ui_gameover; 00047 extern gboolean state_gui_active; 00048 extern gboolean game_file_label, game_rank_label; 00049 00050 extern Game *opt_game; 00051 extern FILE *opt_infile; 00052 extern int opt_delay; 00053 extern int opt_quiet; 00054 extern int ui_white; 00055 extern int ui_black; 00056 extern int opt_white; 00057 extern int opt_black; 00058 extern int opt_verbose; 00059 00060 gboolean impl_check (); 00061 void ui_send_make_move (); 00062 void set_game_params (); 00063 void reset_game_params (); 00064 void ui_terminate_game (); 00065 void ui_start_game (); 00066 void start_game_num (int); 00067 void ui_check_who_won (); 00068 void ui_cancel_move (); 00069 void game_set_init_pos_def (Pos *); 00070 00071 #endif