head.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- // Copyright: 胡小民,丁展 2002.5
- #ifndef _HEAD_H
- #define _HEAD_H
- int totalEdge=0;
- int totalLevel=0;
- int imbalance=0;
- int treeHeight=0;
- int levelNum=0;
- const int MAX_STACK_SIZE=1000;
- #define HUMAN 1
- #define ANT 0
- int row=50;
- int col=50;
- int SIZEX_MAZE=row*2+1;
- int SIZEY_MAZE=col*2+1;
- int EXIT_ROW=SIZEX_MAZE-2;
- int EXIT_COL=SIZEY_MAZE-2;
- int MAX_ANT_NUM=25;
- const int UNACCESSABLE=-50000;
- const int CONST_MAZEX=101;
- const int CONST_MAZEY=101;
- const int CONST_ANT_NUM=25;
- #define RIGHT 2
- #define LEFT -2
- #define DOWN 1
- #define UP -1
- int maze[CONST_MAZEX][CONST_MAZEY]={1};
- int markall[CONST_MAZEX][CONST_MAZEY]; // record the num of ants of go into the path
- bool mark[CONST_MAZEX][CONST_MAZEY]; // record that some path is not accessable
- int pos[CONST_MAZEX][CONST_MAZEY]; // record all objects position at the same time
- bool wild[CONST_MAZEX][CONST_MAZEY];
- #endif