00001 #ifndef HEADER_OBJECT 00002 #define HEADER_OBJECT 00003 00008 #include <stdio.h> 00009 #include <string.h> 00010 #include <stdbool.h> 00011 #include <assert.h> 00012 #include <malloc.h> 00013 #include "define.h" 00014 00015 /* Start interface of object module */ 00016 00018 struct schemaProp{ 00021 char **gameMap; 00022 00024 unsigned int numRow; 00025 00027 unsigned int numCol; 00028 00030 unsigned int startRow; 00031 00033 unsigned int startCol; 00034 00036 unsigned short int **visitedCellInfo; 00037 }; 00038 00039 00040 /* Definition of the type schemaGame.*/ 00041 typedef struct schemaProp schemaGame; 00042 00043 00045 schemaGame schemaData; 00046 00047 00052 unsigned short int weight(char cellId 00053 ); 00054 00055 00060 bool isaccessible( char cellId 00061 ); 00062 00067 char *color( char cellId 00068 ); 00069 00074 char *colorVisited( unsigned short int cellId 00075 ); 00076 00082 void visitCell( unsigned int row, 00083 unsigned int col 00084 ); 00085 00086 /* End interface of object module */ 00087 00088 #endif