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

📄 fire.h

📁 迷宫算法.rar
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//	Fire.h
//	Date: 2004-8-5 21:16
//	A moving ball.
//
///////////////////////////////////////////////////////////////////////////////

#if	!defined _MOVINGBALL_H
#define	_MOVINGBALL_H

#include <windows.h>

///////////////////////////////////////////////////////////////////////////////

LRESULT CALLBACK WindowsProcedure( HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam );

typedef struct _tagFireBall {
	int	xPos;		// The fire ball x position
	int	yPos;		// The fire ball y position
	int	cxMove;		// The speed of x direction 
	int	cyMove;		// The speed of y direction
	int	countTime;	// The lasted time of the fireball
	BOOL	bIsExist;	// Is the fireball exist ?
} FireBall;

///////////////////////////////////////////////////////////////////////////////

class MovingBall {
	public:
		MovingBall( WNDPROC wndProc, const char* className, HINSTANCE hInstance );
		void Register()
		{
			::RegisterClass( & _class );
		}

	private:
		WNDCLASS _class;
};

class WinMaker {
	public:
		WinMaker() : _hWnd( 0 ) {}
		WinMaker( const char* szCaption, const char* className, HINSTANCE hInstance );
		void Show( int cmdShow )
		{
			::ShowWindow( _hWnd, cmdShow );
			::UpdateWindow( _hWnd );
		}

	protected:
		HWND _hWnd;
};

#endif	// _MOVINGBALL_H //

⌨️ 快捷键说明

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