map.h
来自「3D赛车游戏源代码-用Visual Studio 2005」· C头文件 代码 · 共 33 行
H
33 行
//////////////////////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?