head.h
来自「Visual C++游戏开发技术与实例一书配套光盘。包含了冒险屠宰场、入侵者、赛」· C头文件 代码 · 共 50 行
H
50 行
// 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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?