mapface.cpp

来自「VC各工程的源码集合」· C++ 代码 · 共 42 行

CPP
42
字号
// MapFace.cpp: implementation of the CMapFace class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "chess.h"
#include "MapFace.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMapFace::CMapFace()
{

}

CMapFace::~CMapFace()
{

}

void CMapFace::FixManMap()
{
	for(int i=0;i<11;i++)
		for(int j=0;j<12;j++)m_nManMap[i][j]=32;

	for(i=0;i<32;i++)
	{
		if(m_Face.man[i].x)
			m_nManMap[m_Face.man[i].x][m_Face.man[i].y]=i;
	}
		
}

⌨️ 快捷键说明

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