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

📄 cbmini.h

📁 网页游戏赤壁
💻 H
字号:
/////////////////
// CBMini.h		:	《赤壁》缩略图
// v0010		:	Jan.31.1997
// v0011		:	May.5.1997, add blinking on the map, add size of each unit
// written by	:	Liu Gang
// Compiler		:	Visual C++ 4.2 & DirectX
// Library		:	DDraw.lib
// Copyright	:	WayAhead Software Co.Ltd.	1996-1997
/////////////////
// 此文件包含所有对缩略图的操作

#ifndef	__CBMINI_H__
#define	__CBMINI_H__
////////////////////
#define	MINI_ERROR_ID	1200


////////////////////
// 缩略图数据
extern struct MAP_MINI_LIB_STRUCT MINI_Lib;
////////////////////

BOOL MINI_Load();
void MINI_Release();

// draw from mini surface to back buffer , and to front buffer
// bFront	:	1 for draw to front buffer, 
//				2 for only update to front buffer
//				0 for do not draw to front buffer
// bClearBlink	:	TRUE if should erase blink point array right after drawing blink
void MINI_Update( BOOL bFront = TRUE, BOOL bClearBlink = TRUE );

// draw all the items on the battlefield to buffer
// bDraw	:	TRUE if Draw data from ground data to buffer
//				else erase buffer with black
void MINI_DrawAll( BOOL bDraw = TRUE );

// set unit data and ground data, draw or erase
void MINI_SetUnitData( int nCol, int nRow, int nType, int nLocationSize );
void MINI_SetGroundData( int nCol, int nRow, int nLocationSize );

// if there is a war draw blinking cross on the map
void MINI_SetBlink( int nCol, int nRow );
////////////////////
#endif

⌨️ 快捷键说明

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