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

📄 path.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
字号:
#ifndef	__PATH_H__
#define	__PATH_H__


typedef struct	tagSPNODE
{
	int					f, h, g;
	int					x, y;
	int					number;
	struct tagSPNODE	*lpParent;
	struct tagSPNODE	*lpChild[ 8 ];
	struct tagSPNODE	*lpNext;
} SP_NODE, *LPSP_NODE;

typedef struct	tagSPSTACK
{
	struct tagSPNODE	*lpNode;
	struct tagSPSTACK	*lpNext;
} SP_STACK, *LPSP_STACK;

#ifdef __cplusplus
extern "C"
{
#endif

	extern BOOL			PathBuild( CHARLIST *ch, int dx, int dy );
	extern void			PathDestroy( void );
	extern LPSP_NODE	PathFind( CHARLIST *ch,int sx, int sy, int dx, int dy );

	////////////////// 0730 yjs 荐沥 叼弃飘 牢磊蔼阑 持澜 //////////////////////////
	extern int			FreeTile( LPCHARLIST c, int sx, int sy, int x, int y, BOOL	notCheck_My=0, LPCHARLIST attacker=NULL );
	////////////////////////////////////////////////////////////////////////////////

	#ifdef __cplusplus
}
#endif

#endif	// __PATH_H__











⌨️ 快捷键说明

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