general.h
changeset 8 b41a580b3abe
parent 6 bfbca2c0fc70
child 9 622136ed6c62
equal deleted inserted replaced
7:834620831e7a 8:b41a580b3abe
     6 #define MANINPLATFORM 'E'
     6 #define MANINPLATFORM 'E'
     7 #define BLANK ' '
     7 #define BLANK ' '
     8 #define CORNER '-'
     8 #define CORNER '-'
     9 #define MANCANMOVE '+'
     9 #define MANCANMOVE '+'
    10 
    10 
    11 //#define DEBUG
    11 /* #define DEBUG */
    12 
    12 
    13 enum
    13 enum
    14 {
    14 {
    15 	ALARM_SECONDS=1,
    15 	ALARM_SECONDS=1,
    16 	MAX_X=50,
    16 	MAX_X=50,
    22 
    22 
    23 
    23 
    24 enum logic
    24 enum logic
    25 {
    25 {
    26 	TRUE=1,
    26 	TRUE=1,
    27 	FALSE=0,
    27 	FALSE=0
    28 };
    28 };
    29 
    29 
    30 struct Position
    30 struct Position
    31 {
    31 {
    32 	int x;
    32 	int x;
    70 
    70 
    71 
    71 
    72 /* Prototypes for map managing */
    72 /* Prototypes for map managing */
    73 
    73 
    74 void CopyMap (struct Map *Mdest, const struct Map *Morig);
    74 void CopyMap (struct Map *Mdest, const struct Map *Morig);
    75 int are_boxes_equal(const struct Position b1[], const struct Position b2[],
    75 int is_new_map(struct Map maps[], int depth);
    76 	int n);
       
    77 
    76 
    78 /* Prototypes for unix i/o, processes */
    77 /* Prototypes for unix i/o, processes */
    79 void ReadMap(struct Map *M, char *FileName);
    78 void ReadMap(struct Map *M, char *FileName);
    80 void ShowMap (const struct Map *M);
    79 void ShowMap (const struct Map *M);
    81 void init_os();
    80 void init_os();