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

📄 glb.h

📁 泡泡堂单机版
💻 H
字号:
// GLB.h: interface for the GLB class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GLB_H__FB47D327_9925_44A3_8C1D_6CEE952E0E53__INCLUDED_)
#define AFX_GLB_H__FB47D327_9925_44A3_8C1D_6CEE952E0E53__INCLUDED_

//////////////////////////////////////////////////////////////////////////
// 拨浪鼓
// anfysky@163.com
//////////////////////////////////////////////////////////////////////////

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CWaterRoutine.h"
#include "DIBSectionLite.h"

#include <mmsystem.h>
#pragma comment(lib,"winmm.lib")

extern UINT HeightWater(LPVOID pParam);
extern UINT Repainter(LPVOID pParam);
extern UINT AboutDlgHolder(LPVOID pParam);

class CBubbleIIDlg;
class CGhostThread;
class CBubbleThread;
class CAboutDlg;

extern enum GameType
{
	SINGLEPLAYER,
	MULTIPLAYERCOOP,
	MULTIPLAYERFIGHT,
	GAMEOVER,
	INTRODUCE
};

class GLB  
{
public:
	static CAboutDlg* pAboutDlg;
	static BOOL bStageWin;
	static CBitmap* pMemBMP;
	static int iRepaintScoreFrameNum;
	static void RepaintMemScore();
	static int iBounsAIndex;
	static iBackBMPYNum;
	static int iBackBMPXNum;
	static int iBackBMPWidth,iBackBMPHeight;
	static int iWindowWidth,iWindowHeight;
	static void RepaintMemFG();
	static CDC* pPartMemDC;
	static int iGameOverFrameNum;
	static enum GameType eGameType;
	static BOOL bBubbleAlive[30];
	static CGhostThread* pGhostThread[30];
	static CBubbleThread* pBubbleThread[30];
	static unsigned int* pBACKBMPBackUp;
	
	static int iGameStage;
	static ULONG lBMPLength;
	static CDC* pBACKDC;
	static CBitmap* pBACKBMP;
	static BOOL bRepaintThreadAlive;
	static int* piParam[30];
	static BOOL bGhostsAlive[30];
	static tagBITMAP* uBgBMP;
	static CBubbleIIDlg* pMainDlg;
	static BOOL bWaterInited;
	static BOOL bHeightAlive;
	static CWaterRoutine*	pMyWater;
	static BOOL bGameStarted;
	static CDC* pMemDC;
	static BOOL bInitiated;
	static CBitmap* pBMPBackgrounds[25];
	static CBitmap* pBMPGhost[24];
	static CBitmap* pBMPGameover[30];
	static CBitmap*	pBMPBounsA[9];

	static int iYBlocks;
	static int iXBlocks;
	static CBitmap* pSelf[8];
	static int iBlockHeight;
	static int iBlockWidth;
	static int *pIBackMatrix;
//	static int *pIBackMatrixBackup;

	static int *pI[8];
	GLB();
	virtual ~GLB();
	static void RepaintMemBG();
	static void TransparentBlt( HDC hdcDest,      // 目标DC
					 int nXOriginDest,   // 目标X偏移
					 int nYOriginDest,   // 目标Y偏移
					 int nWidthDest,     // 目标宽度
					 int nHeightDest,    // 目标高度
					 HDC hdcSrc,         // 源DC
					 int nXOriginSrc,    // 源X起点
					 int nYOriginSrc,    // 源Y起点
					 int nWidthSrc,      // 源宽度
					 int nHeightSrc,     // 源高度
					 UINT crTransparent  // 透明色,COLORREF类型
					 );

};

#endif // !defined(AFX_GLB_H__FB47D327_9925_44A3_8C1D_6CEE952E0E53__INCLUDED_)

⌨️ 快捷键说明

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