📄 path.h
字号:
/*
*/
#define MAX_ITEM_COLLISION 100
#ifndef __PATH_H__
#define __PATH_H__
#include "dragon.h"
#include "char.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;
typedef struct tagColisionLine
{
int sx, sy, dx, dy;
}COLLISIONLINE, *LPCOLLISIONLINE;
#ifdef __cplusplus
extern "C"
{
#endif
extern int PathCollisionLineCount; // 辨瘉扁俊 荤侩瞪 酒捞袍阑 葛酒 初绰促.
extern COLLISIONLINE PathCollisionLine[ MAX_ITEM_COLLISION ];
extern BOOL PathBuild( LPCHARACTER lpCharacter );
extern void PathDestroy( void );
extern LPSP_NODE PathFind( LPCHARACTER lpcharacter,int sx, int sy, int dx, int dy );
extern int FreeTile( LPCHARACTER lpcharacter, int sx, int sy, int x, int y );
extern int FreeTileOther( LPCHARACTER ch, int sx, int sy );
extern int CheckLineCollision( LPCHARACTER ch, int sx, int sy, int ex, int ey );
////////////////////////0724 yjs /////////////////////////////////////////////////
////////////////////////鸥老 茄沫老 菊栏肺 啊搁辑 眉农窍绰 窃荐////////////////////
extern int Tile_Collision(LPCHARACTER ch, DIRECTION dir, int Power);
////////////////////////////////////////////////////////////////////////////////////
///////////////////0728 yjs //////////////////////////////////////////////
// extern void Reaction(LPCHARACTER ch, DIRECTION &, int &);
/////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif
#endif // __PATH_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -