/* * gataxx.h - header file fro gataxx.c * Written by Chris Rogers (gandalf@pobox.com) * Based on iagno code written by Ian Peters (itp@gnu.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * For more details see the file COPYING. */ #ifndef _GATAXX_H_ #define _GATAXX_H_ #define BLACK_TURN 1 #define WHITE_TURN 31 #define PIXMAP_FLIP_DELAY 20 #define PIXMAP_STAGGER_DELAY 3 #define COMPUTER_MOVE_DELAY 1200 #define TILEWIDTH 60 #define TILEHEIGHT 60 #define BOARDWIDTH (TILEWIDTH * 7) #define BOARDHEIGHT (TILEHEIGHT * 7) struct _MoveHistory { gint8 board[7][7]; gint8 x; gint8 y; gint8 me; struct _MoveHistory * prev; }; typedef struct _MoveHistory MoveHistory; void new_game_cb (GtkWidget *widget, gpointer data); void new_net_game_cb (GtkWidget *widget, gpointer data); gboolean quit_game_cb (GtkWidget *widget, gpointer data); void undo_move_cb (GtkWidget *widget, gpointer data); void redo_move_cb (GtkWidget *widget, gpointer data); void black_level_cb (GtkWidget *widget, gpointer data); void white_level_cb (GtkWidget *widget, gpointer data); void about_cb (GtkWidget *widget, gpointer data); void comp_black_cb (GtkWidget *widget, gpointer data); void comp_white_cb (GtkWidget *widget, gpointer data); void quick_moves_cb (GtkWidget *widget, gpointer data); void anim_cb (GtkWidget *widget, gpointer data); void anim_stagger_cb (GtkWidget *widget, gpointer data); void load_tiles_cb (GtkWidget *widget, gpointer data); void fill_menu (GtkWidget *menu); void set_selection (GtkWidget *widget, void *data); void free_str (GtkWidget *widget, void *data); void load_tiles_callback (GtkWidget *widget, void *data); void cancel (GtkWidget *widget, void *data); gint expose_event (GtkWidget *widget ,GdkEventExpose *event); void gui_draw_pixmap (gint which, gint x, gint y); void gui_draw_pixmap_buffer (gint which, gint x, gint y); gint flip_pixmaps (gpointer data); void init_new_game (void); void create_window (void); void gui_status (void); void gui_message (gchar *message); guint check_computer_players (void); void load_pixmaps (void); void properties_cb (GtkWidget *widget, gpointer data); void gui_draw_selected (gint x, gint y, gint on); extern guint whose_turn; #endif