wave.h
来自「寻径算法演示平台~~提供给计算机博弈爱好者参考学习」· C头文件 代码 · 共 42 行
H
42 行
// Wave.h: interface for the CWave class.
//
//////////////////////////////////////////////////////////////////////
#include "SearchPathEngine.h"
#if !defined(AFX_WAVE_H__F7EC29D2_54C8_4B7D_8D14_F329855F4DFF__INCLUDED_)
#define AFX_WAVE_H__F7EC29D2_54C8_4B7D_8D14_F329855F4DFF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define Height 120
#define Width 176
class CWave:public CSearchPathEngine
{
public:
void showThePath(CDC *pDC , int showMode);
int searchThePath();
void prepareForStepByStep();
int searchThePathStepByStep();
CWave();
virtual ~CWave();
protected:
struct wa_node
{
bool close;
wa_node *next;
int value;
int x,y;
};
wa_node *m_pNode[Height][Width];
wa_node m_node[Height][Width];
wa_node *m_head;
//int startX,startY,targetX,targetY;
};
#endif // !defined(AFX_WAVE_H__F7EC29D2_54C8_4B7D_8D14_F329855F4DFF__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?