Main Page | File List

loaders.h

00001 /* '='='=' '@' '='='='='='='='='=' '@' '='='='='='='='='=' '@' '='='='| */
00002 /* ='='=' '@'@' '='='='='='='='=' '@'@' '='='='='='='='=' '@'@' '='='=| */
00003 /* '='=' '@':'@' '='='='='='='=' '@':'@' '='='='='='='=' '@':'@' '='='| */
00004 /* ='=' '@':':'@' '='='='='='=' '@':':'@' '='='='='='=' '@':':'@' '='=| */
00005 /* '=' '@':':':'@' '='='='='=' '@':':':'@' '='='='='=' '@':':':'@' '='| */
00006 /* =' '@':':':':'@' '='='='=' '@':':':':'@' '='='='=' '@':':':':'@' '=| */
00007 /* ' '@':'                                                       '@' '| */
00008 /*  '@'         3rd Year Project - ROY SCHESTOWITZ - 2002          @' | */
00009 /* '@                                                               @'| */
00010 /* @':':':':':':':':'@' ' '@':':':':':':':':'@' ' '@':':':':':':':':'@| */
00011 /* ':':':':':':':':':'@' '@':':':':':':':':':'@' '@':':':':':':':':':'| */
00012 /* :':':':':':':':':':'@'@':':':':':':':':':':'@'@':':':':':':':':':':| */
00013 /* ':':':': : :':':':':'@':':':':': : :':':':':'@':':':':': : :':':':'| */
00014 /*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
00015 /*              Name:           loaders.h                               */
00016 /*              Version:        0.6.6                                   */
00017 /*              Date:           12/2/2003                               */
00018 /*                                                                      */
00019 /*              Prototypes for misc. functions that load data           */
00020 /*                                                                      */
00021 /*  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
00022 
00023 
00024 
00025 /************************************************************************/
00026 /**********************  INCLUDES  **************************************/
00027 /************************************************************************/
00028 
00029 
00030 /************************************************************************/
00031 /**********************  DEFINES  ***************************************/
00032 /************************************************************************/
00033 
00034 #define LOAD_BLK_LENGTH 128     /* size of buffer to read data from file         */
00035 #define SAVED_FILE_SIZE 110     /* the expected size of the saved or loaded file */
00036 #define GAME_SAVE_HEADER 7373   /* the header describing an Othello Master game  */
00037 #define GAME_SAVE_VERSION 140   /* the identifying number for the version of     */
00038                                 /* the saved game format                         */
00039 #define OPENING_LIB_LENGTH 6800 /* size of opening library buffer                */
00040                                 /* holds up to 100 entries                       */
00041 
00042 /************************************************************************/
00043 /**********************  DATA STRUCTURES  *******************************/
00044 /************************************************************************/
00045 
00046 
00047 /************************************************************************/
00048 /**********************  PROTOTYPES  ************************************/
00049 /************************************************************************/
00050 
00051 GLubyte *glmReadPPM ( char *filename, int *width, int *height );
00052 int save_game ( int );
00053 int load_game ( int );
00054 int load_game_from_filename ( char *filename );
00055 int save_game_to_filename ( char *filename );
00056 int load_opening_library_file ( char *filename );
00057 
00058 
00059 /*                                                                      */
00060 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
00061 /*                     end of loaders.h                                 */
00062 /************************************************************************/

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