general.h
changeset 9 622136ed6c62
parent 8 b41a580b3abe
child 10 9148590f009d
equal deleted inserted replaced
8:b41a580b3abe 9:622136ed6c62
    67 	int box;
    67 	int box;
    68 	struct Position dir;
    68 	struct Position dir;
    69 };
    69 };
    70 
    70 
    71 
    71 
    72 /* Prototypes for map managing */
    72 /* Prototypes for map managing
    73 
    73  * map.c */
    74 void CopyMap (struct Map *Mdest, const struct Map *Morig);
    74 void CopyMap (struct Map *Mdest, const struct Map *Morig);
    75 int is_new_map(struct Map maps[], int depth);
    75 int is_new_map(struct Map maps[], int depth);
    76 
    76 
    77 /* Prototypes for unix i/o, processes */
    77 /* Prototypes for unix i/o, processes
       
    78  * os.c */
    78 void ReadMap(struct Map *M, char *FileName);
    79 void ReadMap(struct Map *M, char *FileName);
    79 void ShowMap (const struct Map *M);
    80 void ShowMap (const struct Map *M);
    80 void init_os();
    81 void init_os();
    81 void PrintMove(struct BoxMove b);
    82 void PrintMove(struct BoxMove b);
    82 
    83 
    83 /* Functions related to map solution */
    84 /* Functions related to map solution
       
    85  * algorithm.c */
    84 int solve_map(const struct Map origin);
    86 int solve_map(const struct Map origin);