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

📄 gamemap.h

📁 一个类似坦克大战的小小游戏
💻 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 + -