This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

ui.h File Reference

#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include "game.h"

Go to the source code of this file.

Defines

#define player_to_play   (cur_pos.player == WHITE ? ui_white : ui_black)

Enumerations

enum  { NONE, HUMAN, MACHINE }

Functions

gboolean impl_check ()
void ui_send_make_move ()
void set_game_params ()
void reset_game_params ()
void ui_terminate_game ()
void ui_start_game ()
void start_game_num (int)
void ui_check_who_won ()
void ui_cancel_move ()
void game_set_init_pos_def (Pos *)

Variables

Gamegames []
Pos cur_pos
const int num_games
FILE* move_fin
FILE * move_fout
int state_player
gboolean engine_flag
gboolean ui_stopped
gboolean ui_cheated
gboolean ui_gameover
gboolean state_gui_active
gboolean game_file_label
gboolean game_rank_label
Gameopt_game
FILE* opt_infile
int opt_delay
int opt_quiet
int ui_white
int ui_black
int opt_white
int opt_black
int opt_verbose


Define Documentation

#define player_to_play   (cur_pos.player == WHITE ? ui_white : ui_black)
 

Definition at line 28 of file ui.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
NONE  
HUMAN  
MACHINE  

Definition at line 30 of file ui.h.


Function Documentation

void game_set_init_pos_def ( Pos * pos )
 

gboolean impl_check ( )
 

void reset_game_params ( )
 

Definition at line 236 of file ui.c.

void set_game_params ( )
 

void start_game_num ( int )
 

void ui_cancel_move ( )
 

Definition at line 520 of file ui.c.

void ui_check_who_won ( )
 

void ui_send_make_move ( )
 

Definition at line 435 of file ui.c.

void ui_start_game ( )
 

Definition at line 317 of file ui.c.

void ui_terminate_game ( )
 

Definition at line 293 of file ui.c.


Variable Documentation

Pos cur_pos
 

Definition at line 34 of file ui.h.

gboolean engine_flag
 

Definition at line 42 of file ui.h.

gboolean game_file_label
 

Definition at line 48 of file ui.h.

gboolean game_rank_label
 

Definition at line 48 of file ui.h.

Game* games[]
 

Definition at line 32 of file ui.h.

FILE* move_fin
 

Definition at line 38 of file ui.h.

FILE * move_fout
 

Definition at line 38 of file ui.h.

const int num_games
 

Definition at line 36 of file ui.h.

int opt_black
 

Definition at line 57 of file ui.h.

int opt_delay
 

Definition at line 52 of file ui.h.

Game* opt_game
 

Definition at line 50 of file ui.h.

FILE* opt_infile
 

Definition at line 51 of file ui.h.

int opt_quiet
 

Definition at line 53 of file ui.h.

int opt_verbose
 

Definition at line 58 of file ui.h.

int opt_white
 

Definition at line 56 of file ui.h.

gboolean state_gui_active
 

Definition at line 47 of file ui.h.

int state_player
 

Definition at line 40 of file ui.h.

int ui_black
 

Definition at line 55 of file ui.h.

gboolean ui_cheated
 

Definition at line 45 of file ui.h.

gboolean ui_gameover
 

Definition at line 46 of file ui.h.

gboolean ui_stopped
 

Definition at line 44 of file ui.h.

int ui_white
 

Definition at line 54 of file ui.h.