?? gamemap.h
字號:
/**************************************************************************************
Project Name : Map Edit of my game
Module Name : Map
File Name : GameMap.h: interface for the CMap class.
Create : 2007-7-6, by Vigame
Update : 2007-7-27, Solved the problem cannot read chinese path, by Vigame
Copyright :
Reference :
Abstrct : Descriptions the sturcture of the map.
**************************************************************************************/
#if !defined(AFX_MAP_H__E463E087_B163_4B13_A1BC_5A91F99B0D51__INCLUDED_)
#define AFX_MAP_H__E463E087_B163_4B13_A1BC_5A91F99B0D51__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GameObject.h"
#include "GameResource.h"
#include <list>
#include <fstream>
#include <iostream>
#include <iomanip>
using namespace std;
class CGameMap
{
public:
CGameMap();
virtual ~CGameMap();
public:
BOOL CreateMap(); // Create a new map, this fuction is only used in map edit.
BOOL SaveMap(list<CGameObject> &inObjectList); // Save map
BOOL LoadMap(list<CGameObject> &inObjectList, CGameResource &inResource); // Load map
BOOL LoadLevel(LPSTR lpName, list<CGameObject> &inObjectList, CGameResource &inResource);
public:
// The map's infos
char m_mapName[256];
int m_nObjectCount;
int m_nWidth; // Pixel units, to set as 960
int m_nHeight; // Pixel units, to set as 540
};
#endif // !defined(AFX_MAP_H__E463E087_B163_4B13_A1BC_5A91F99B0D51__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -