⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 Visual C++ 游戏开发与设计实例 源代码(所有)
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -