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

📄 map.h

📁 3D赛车游戏源代码-用Visual Studio 2005
💻 H
字号:
//////////////////////////////////////////////////////////////////////////
//  CMap类,地图类,载入游戏地图。
//
//  Map.h: CMap类的声明
//
//  Copy Rights Wonderful 2006
//////////////////////////////////////////////////////////////////////////

#ifndef __MAP_H_INCLUDED__
#define __MAP_H_INCLUDED__

#include "StaticActor.h"


class CMap
{
public:
	CMap();
	bool LoadFromFile(const char *filename);

	int GetWidth() { return m_iWidth; }
	int GetHeight() { return m_iHeight; }

protected:
	typedef vector<CStaticActor> StaticActorList;

	int m_iWidth;
	int m_iHeight;
	StaticActorList m_SceneElems;
};

#endif //#ifndef __MAP_H_INCLUDED__

⌨️ 快捷键说明

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