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

📄 water.h

📁 寻径算法演示平台~~提供给计算机博弈爱好者参考学习
💻 H
字号:
// Water.h: interface for the CWater class.
//
//////////////////////////////////////////////////////////////////////

//#include "node.h"
#include "SearchPathEngine.h"

#if !defined(AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_)
#define AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#define Height 120
#define Width 176

class CWater:public CSearchPathEngine
{
public:
	CWater();
	virtual ~CWater();

private:
	struct node
	{
		node *next;
		int x;
		int y;
	};
	int writeNumber();
	bool m_value[Height][Width];
	node *head;
	//int startX,startY,targetX,targetY;
public:
	void showThePath(CDC *pDC , int showMode);
	int searchThePath();
	
	int m_map[Height][Width];
};

#endif // !defined(AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -