Main Page | File List

callbacks.h

00001 /* '='='=' '@' '='='='='='='='='=' '@' '='='='='='='='='=' '@' '='='='| */
00002 /* ='='=' '@'@' '='='='='='='='=' '@'@' '='='='='='='='=' '@'@' '='='=| */
00003 /* '='=' '@':'@' '='='='='='='=' '@':'@' '='='='='='='=' '@':'@' '='='| */
00004 /* ='=' '@':':'@' '='='='='='=' '@':':'@' '='='='='='=' '@':':'@' '='=| */
00005 /* '=' '@':':':'@' '='='='='=' '@':':':'@' '='='='='=' '@':':':'@' '='| */
00006 /* =' '@':':':':'@' '='='='=' '@':':':':'@' '='='='=' '@':':':':'@' '=| */
00007 /* ' '@':'                                                       '@' '| */
00008 /*  '@'         3rd Year Project - ROY SCHESTOWITZ - 2002          @' | */
00009 /* '@                                                               @'| */
00010 /* @':':':':':':':':'@' ' '@':':':':':':':':'@' ' '@':':':':':':':':'@| */
00011 /* ':':':':':':':':':'@' '@':':':':':':':':':'@' '@':':':':':':':':':'| */
00012 /* :':':':':':':':':':'@'@':':':':':':':':':':'@'@':':':':':':':':':':| */
00013 /* ':':':': : :':':':':'@':':':':': : :':':':':'@':':':':': : :':':':'| */
00014 /*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
00015 /*              Name:           callbacks.h                             */
00016 /*              Version:        0.6.6                                   */
00017 /*              Date:           12/2/2003                               */
00018 /*                                                                      */
00019 /*      Prototypes for callback functions                               */
00020 /*                                                                      */
00021 /*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
00022 
00023 
00024 
00025 /************************************************************************/
00026 /**********************  INCLUDES  **************************************/
00027 /************************************************************************/
00028 
00029 
00030 /************************************************************************/
00031 /**********************  DEFINES  ***************************************/
00032 /************************************************************************/
00033 
00034 /*******************/
00035 /* callback values */
00036 /*******************/
00037 
00038 
00039 /* MAIN MENU */
00040 
00041 #define MAIN_MENU_NEW_GAME 1
00042 
00043 #define MAIN_MENU_HELP     2
00044 
00045 #define MAIN_MENU_UNDO     7
00046 
00047 #define MAIN_MENU_SCORE    3
00048 
00049 #define MAIN_MENU_GRID     4
00050 
00051 #define MAIN_MENU_METERS   5
00052 
00053 #define MAIN_MENU_QUIT     6
00054 
00055 
00056 /* EDIT BOARD SUBMENU */
00057 
00058 #define EDIT_START       91
00059 
00060 #define EDIT_BLACK       92
00061 
00062 #define EDIT_RED         93
00063 
00064 #define EDIT_NONE        94
00065 
00066 #define EDIT_END         95
00067 
00068 
00069 /* SAVE SUBMENU */
00070 
00071 #define SAVE_SLOT_0        10
00072 
00073 #define SAVE_SLOT_1        11
00074 
00075 #define SAVE_SLOT_2        12
00076 
00077 #define SAVE_SLOT_3        13
00078 
00079 #define SAVE_SLOT_4        14
00080 
00081 #define SAVE_SLOT_5        15
00082 
00083 #define SAVE_SLOT_6        16
00084 
00085 #define SAVE_SLOT_7        17
00086 
00087 #define SAVE_SLOT_8        18
00088 
00089 #define SAVE_SLOT_9        19
00090 
00091 
00092 /* LOAD SUBMENU */
00093 
00094 #define LOAD_SLOT_0        20
00095 
00096 #define LOAD_SLOT_1        21
00097 
00098 #define LOAD_SLOT_2        22
00099 
00100 #define LOAD_SLOT_3        23
00101 
00102 #define LOAD_SLOT_4        24
00103 
00104 #define LOAD_SLOT_5        25
00105 
00106 #define LOAD_SLOT_6        26
00107 
00108 #define LOAD_SLOT_7        27
00109 
00110 #define LOAD_SLOT_8        28
00111 
00112 #define LOAD_SLOT_9        29
00113 
00114 
00115 /* LOGGING SUBMENU */
00116 
00117 #define LOGGING_ACTIVATE   60
00118 
00119 #define LOGGING_DEACTIVATE   61
00120 
00121 
00122 /* GAME MODE SUBMENU */
00123 
00124 #define GAMEMODE_CPU     40
00125 
00126 #define GAMEMODE_PLAYER  41
00127 
00128 
00129 /* CUSTOMISED COMPUTATION SUBMENU */
00130 
00131 #define CUSTOMISED_LINE         70
00132 
00133 #define CUSTOMISED_SCORE        71
00134 
00135 #define CUSTOMISED_MOBILITY     72
00136 
00137 #define CUSTOMISED_POSITION     73
00138 
00139 
00140 /* DETERMINISM SUBMENU */
00141 
00142 #define DETERMINISM_ON          80
00143 
00144 #define DETERMINISM_OFF         81
00145 
00146 
00147 /* REPORT SUBMENU */
00148 
00149 #define REPORT_ON          90
00150 
00151 #define REPORT_OFF         91
00152 
00153 
00154 /* DIFFICULTY SUBMENU */
00155 
00156 #define DIF_CALLBACK_BEGINNER          30
00157 
00158 #define DIF_CALLBACK_NOVICE            31
00159 
00160 #define DIF_CALLBACK_EXPERT            32
00161 
00162 #define DIF_CALLBACK_PREMASTER         33
00163 
00164 #define DIF_CALLBACK_MASTER            34
00165 
00166 
00167 /* DIFFICULTY DESCRIPTION SUBMENU */
00168 
00169 #define DIF_DESC_CALLBACK_BEGINNER          130
00170 
00171 #define DIF_DESC_CALLBACK_NOVICE            131
00172 
00173 #define DIF_DESC_CALLBACK_EXPERT            132
00174 
00175 #define DIF_DESC_CALLBACK_PREMASTER         133
00176 
00177 #define DIF_DESC_CALLBACK_MASTER            134
00178 
00179 
00180 /* OPENING LIBRARY SUBMENU */
00181 
00182 #define LIBRARY_ON         143
00183 
00184 #define LIBRARY_OFF        144
00185 
00186 /************************************************************************/
00187 /**********************  DATA STRUCTURES  *******************************/
00188 /************************************************************************/
00189 
00190 
00191 /************************************************************************/
00192 /**********************  PROTOTYPES  ************************************/
00193 /************************************************************************/
00194 
00195 /**********************/
00197 /**********************/
00198 
00199 void customise_callback ( int menuentry );
00200 void load ( int menuentry );
00201 void save ( int menuentry );
00202 void log_file_callback ( int menuentry );
00203 void difficulty_callback ( int menuentry );
00204 void difficulty_description_callback ( int menuentry );
00205 void gamemode_callback ( int menuentry );
00206 void opening_library_callback ( int menuentry );
00207 void determinism_callback ( int menuentry );
00208 void report_callback ( int menuentry );
00209 void edit_board_callback ( int menuentry );
00210 
00211 /*******************/
00213 /*******************/
00214 
00215 void menu ( int menuentry );
00216 
00217 /********************/
00219 /********************/
00220 
00221 void mouse ( int button, int state, int x_val, int y_val );
00222 void idlefun ( void );
00223 void display ( void );
00224 void reshape ( int w, int h );
00225 void mouse_motion ( int x, int y );
00226 void keyboard ( unsigned char key, int x, int y );
00227 
00228 /************/
00230 /************/
00231 
00232 void automated_moves ( void );
00233 void open_log_file ( char *filename );
00234 void open_report ( char *filename );
00235 
00236 /*                                                                      */
00237 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
00238 /*                     end of callbacks.h                               */
00239 /************************************************************************/

Generated on Mon May 23 01:16:01 2005 by doxygen 1.3.2