資源簡介
掃雷外掛
該掃雷外掛具有自動掃雷和手動掃雷的功能,能智能判斷地雷的具體位置并擁有特殊的智能排雷的功能,可使外掛擁有更低的失敗概率,且具有較好的效率與直觀的狀態(tài)顯示,完全支持默認的三種掃雷形式(初級、中級與高級),擁有鼠標區(qū)域映射,能與Windows?掃雷TM* 程序高度兼容。
代碼片段和文件信息
#include?“stdafx.h“
#include?“resource.h“
//#include?
#include?
#include?
#include?
#include?
#include?
#pragma?comment(lib?“COMCTL32.LIB“)
//?DEFINE.
const?int?NUM_BITMAPS?=?16;
const?int?BOMB_UNCLK??=?0;
const?int?BOMB_1??????=?1;
const?int?BOMB_2??????=?2;
const?int?BOMB_3??????=?3;
const?int?BOMB_4??????=?4;
const?int?BOMB_5??????=?5;
const?int?BOMB_6??????=?6;
const?int?BOMB_7??????=?7;
const?int?BOMB_8??????=?8;
const?int?BOMB_BLANK??=?9;
const?int?BOMB_BOMB???=?10;
const?int?BOMB_UNKOWN?=?11;
const?int?BOMB_NOBOMB?=?12;
const?int?BOMB_FLAG???=?13;
const?int?BOMB_CLKED??=?14;
const?int?BOMB_DICEYD?=?15;
//{{FREE?CODE
/////////////////////////////////////////////////////////////////////////////////////////
HINSTANCE?hInst;
HDC ??hdc?mdc;
HWND ??hWnd?g_WindowHWnd;
HWND??????hStatusWnd?hToolsWnd;
HBITMAP???map[NUM_BITMAPS];
DWORD?????tBegin=0?tNow=0;
HMENU?????hMenu?;
LPCSTR????strAbout?=?“All?Rights?Reserved?By?COX?@?SWUST.?(C)2007“;
void?????BombInit();
void?????BombMain();
void?????UpdateState();
void?????GetBombPos();
void?????AIClick();
void?????ReDo();
void?????RandClick();
void?????SpeedRun();
void?????AIRun();
int??????GetInfo(int?row?int?line?);
COLORREF?GetColor(?int?newX?int?newY?);
void?????MouseDown(LPARAM?lParam);
//?void?????assert(?void*?param?);
typedef?enum?tagGameState?{?GAME_BEGIN?GAME_PAUSE?GAME_OVER?GAME_AI?GAME_AIRUN?};
tagGameState?GameState?=?GAME_BEGIN;
//?游戲左上角坐標
const?int?GAME_LEFT???=?12;
const?int?GAME_TOP????=?55;
const?int?GAME_RIGHT??=?492;
const?int?GAME_BOTTOM?=?311;
const?int?BOMB_WIDTH??=?16;
const?int?BOMB_HEIGHT?=?16;
const?int?BOMB_ROW????=?16;
const?int?BOMB_LINE???=?30;
int?BombState[BOMB_ROW][BOMB_LINE];
?
/////////////////////////////////////////////////////////////////////////////////////////
ATOM MyRegisterClass(?HINSTANCE?hInstance?);
BOOL InitInstance(?HINSTANCE?int?);
LRESULT?CALLBACK WndProc(?HWND?UINT?WPARAM?LPARAM?);
int?????CALLBACK????DlgAboutProc(?HWND?UINT?WPARAM?LPARAM?);
//////////////////////////////////////////////////////////////////////////////
ATOM?MyRegisterClass(?HINSTANCE?hInstance?)
{
WNDCLASSEX?wcex;
wcex.cbSize =?sizeof(?WNDCLASSEX?);?
wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?(?WNDPROC?)WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?(?HICON?)LoadIcon(?hInst?MAKEINTRESOURCE(IDI_ICON)?);
wcex.hCursor =?(?HCURSOR?)LoadCursor(?NULL?IDC_ARROW?);
wcex.hbrBackground =?(?HBRUSH?)GetStockobject(?WHITE_BRUSH?);
wcex.lpszMenuName =?NULL;
wcex.lpszClassName =?“canvas“;
wcex.hIconSm =?(?HICON?)LoadIcon(?hInst?MAKEINTRESOURCE(IDI_ICON_SMALL)?);
return?RegisterClassEx(?&wcex?);
}
////////////////////////////////////////////////////////////////////////////////////
//the?windows?main?function
int?APIENTRY
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????175104??2007-06-09?18:23??掃雷外掛\掃雷外掛.doc
?????文件?????156376??2007-06-09?21:07??掃雷外掛\程序\掃雷外掛.CHM
?????文件?????119808??2005-12-15?08:00??掃雷外掛\程序\winmine.exe
?????文件??????65536??2007-10-20?15:44??掃雷外掛\程序\掃雷外掛.exe
?????目錄??????????0??2007-10-15?21:04??掃雷外掛\程序
?????文件???????1014??2007-03-26?21:50??掃雷外掛\代碼\bitmap1.bmp
?????文件???????2238??2007-03-20?20:58??掃雷外掛\代碼\bomb.ico
?????文件???????4204??2007-04-04?11:38??掃雷外掛\代碼\bombs.bmp
?????文件???????1406??2007-04-04?12:31??掃雷外掛\代碼\bombsmall.ico
?????文件??????21028??2007-06-09?16:48??掃雷外掛\代碼\canvas.cpp
?????文件???????4651??2007-04-04?12:41??掃雷外掛\代碼\canvas.dsp
?????文件????????535??2003-06-28?22:11??掃雷外掛\代碼\canvas.dsw
?????文件????????326??2003-06-28?21:16??掃雷外掛\代碼\canvas.h
?????文件???????2117??2007-04-04?13:20??掃雷外掛\代碼\resource.h
?????文件????????293??2003-06-28?21:16??掃雷外掛\代碼\StdAfx.cpp
?????文件????????936??2007-06-08?10:31??掃雷外掛\代碼\StdAfx.h
?????文件?????119808??2005-12-15?08:00??掃雷外掛\代碼\winmine.exe
?????文件???????1014??2007-03-26?21:49??掃雷外掛\代碼\toolbar1.bmp
?????文件??????50176??2007-10-20?15:45??掃雷外掛\代碼\canvas.ncb
?????文件???????6458??2007-10-20?15:44??掃雷外掛\代碼\canvas.rc
?????文件??????17264??2007-10-20?15:44??掃雷外掛\代碼\canvas.aps
?????文件???????1676??2007-10-20?15:44??掃雷外掛\代碼\canvas.plg
?????文件??????48640??2007-10-20?15:45??掃雷外掛\代碼\canvas.opt
?????目錄??????????0??2007-10-15?21:04??掃雷外掛\代碼
?????文件?????????89??2007-10-20?15:54??掃雷外掛\Readme.txt
?????目錄??????????0??2007-10-15?21:04??掃雷外掛
-----------?---------??----------?-----??----
???????????????800697????????????????????26
- 上一篇:VC6 斑馬打印機Demo
- 下一篇:cmake-3.7.1.rar
評論
共有 條評論