maplist.h

来自「网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志」· C头文件 代码 · 共 54 行

H
54
字号
// UserList.h: interface for the CMapList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(MAPLIST_HEADFILE)
#define MAPLIST_HEADFILE

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

#pragma warning(disable:4786)
#include "define.h"
#include "windows.h"
#include "NetworkDef.h"
#include <time.h>
#include <vector>
using namespace std;
using namespace world_kernel;

struct CMapSt
{
	OBJID		idMap;
	OBJID		idxMapGroup;
	int			nPortalX;
	int			nPortalY;

	CMapSt() { idMap = ID_NONE; }
	OBJID	GetID() { return idMap; }
};

class IDatabase;
class CMapList  
{
public:
	CMapList();
	virtual ~CMapList();
	static CMapList* CreateNew()		{ return new CMapList; }
	bool	Create(IDatabase* pDb);
	ULONG	Release()			{ delete this; return 0; }

public:
	PROCESS_ID	GetMapProcessID(OBJID idMap);
	CMapSt*		GetMap(OBJID idMap);

protected:
	typedef vector<CMapSt*>	MAP_SET;
	MAP_SET	m_setMap;
};



#endif // !defined(MAPLIST_HEADFILE)

⌨️ 快捷键说明

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