📄 map.h
字号:
// Map.h: interface for the Map class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAP_H__297D1E25_69E1_11D3_AC0B_0000E8CED079__INCLUDED_)
#define AFX_MAP_H__297D1E25_69E1_11D3_AC0B_0000E8CED079__INCLUDED_
#include <windows.h>
#include "Internal.h"
#include "ImageList.h"
#include "Charactar.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct tapZorderBuffer
{
int x,y;
int type;
int index;
int tx,ty;
int xa,ya;
int k;
}ZorderBuffer;
class Map
{
public:
void SortY();
int m_ztt;
void DrawIt(WORD *lpBitmap,long lPitch);
void SaveAllPos(int x,int y);
ZorderBuffer ZBuffer[10000];
Charactar * m_lpCharactar;
bool GetMoveStatus(int x,int y);
void CreateCharactar(bool bColorMode);
void DrawMapLayer(int x,int y,WORD *lpBitmap,long lPitch);
bool LoadMapCGL(char *lpszFilename,bool bColorMode);
bool LoadMapFile(char *lpszFilename);
POINT m_Cursor;
ImageList * m_lpImageList;
MAPFILEHEADER * m_lpMapFileHeader;
MAPBLOCK *m_lpMapBlock; // 地图单元
void ConvertPosition(int & x,int & y);
Map();
virtual ~Map();
};
#endif // !defined(AFX_MAP_H__297D1E25_69E1_11D3_AC0B_0000E8CED079__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -