?? minedefs.h
字號:
#ifndef _MINEDEF
#define _MINEDEF
// regedit defines
#define DEFAULT_LEVEL 0// for first run the default level will be primary(0)
#define DEFAULT_RECORD 999
#define DEFAULT_HOLDER _T("匿名")
#define DEFAULT_MARKFUL 1
#define DEFAULT_COLORFUL 1
#define DEFAULT_SOUNDFUL 0
#define PRIMARY_XNUM 9
#define PRIMARY_YNUM 9
#define PRIMARY_MINENUM 10
#define SECONDRY_XNUM 16
#define SECONDRY_YNUM 16
#define SECONDRY_MINENUM 40
#define ADVANCE_XNUM 30
#define ADVANCE_YNUM 16
#define ADVANCE_MINENUM 99
#define GAME_SETTING _T("GameSetting")
#define GAME_LEVEL _T("CurrentLevel") // 0:Primary1:Second2:Advance
#define GAME_MARKFUL _T("Markful")
#define GAME_COLORFUL _T("Colorful")
#define GAME_SOUNDFUL _T("Soundful")
#define PRIMARY_RECORD _T("PrimaryRecord")
#define PRIMARY_HOLDER _T("PrimaryHolder")
#define SECOND_RECORD _T("SecondRecord")
#define SECOND_HOLDER _T("SecondHolder")
#define ADVANCE_RECORD _T("AdvanceRecord")
#define ADVANCE_HOLDER _T("AdvanceHolder")
#define CUSTOM_XNUM _T("CustomXNum") // X coordinate mine rect numbers
#define CUSTOM_YNUM _T("CustomYNum") // Y coordinate mine rect numbers
#define CUSTOM_MINENUM _T("CustomMineNum") // Custom total mine numbers (in default: Primary=10, Second=40, Advance=99)
// 窗口寬度相關(guān)定義
#define DEFAULT_FRAME_X 6 //窗口X方向?qū)?#define DEFAULT_FRAME_Y 52
#define LINE_WIDTH_0 3 //線邊0的寬度
#define LINE_WIDTH_1 2 //線邊1的寬度
#define SIDE_WIDTH_0 6 //邊0的寬度
#define SIDE_WIDTH_1 5 //邊1的寬度
#define SHELL_S_H 37 //小外殼的高度
#define SHELL_S_START_X 9 //小外殼的x坐標(biāo)始發(fā)點
#define SHELL_S_START_Y 9 //小外殼的y坐標(biāo)始發(fā)點
#define SHELL_L_START_X 9 //大外殼的x坐標(biāo)始發(fā)點
#define SHELL_L_START_Y 52 //大外殼的y坐標(biāo)始發(fā)點
#define MINEAREA_FRAME_X 12
#define MINEAREA_FRAME_Y 55
// 雷方塊定義
#define MINE_WIDTH 16 //雷方塊的大小(寬度為16的位圖)
#define MINE_HEIGHT 16
#define MINE_AREA_LEFT 12
#define MINE_AREA_TOP 55
#define STATE_NORMAL 0 //正常
#define STATE_FLAG 1 //標(biāo)志為雷
#define STATE_DICEY 2 //未知狀態(tài)0
#define STATE_BLAST 3 //爆炸狀態(tài)
#define STATE_ERROR 4 //錯誤狀態(tài)
#define STATE_MINE 5 //雷狀態(tài)
#define STATE_DICEY_DOWN 6 //未知狀態(tài)1
#define STATE_NUM8 7 //周圍有8雷
#define STATE_NUM7 8
#define STATE_NUM6 9
#define STATE_NUM5 10
#define STATE_NUM4 11
#define STATE_NUM3 12
#define STATE_NUM2 13
#define STATE_NUM1 14
#define STATE_EMPTY 15 //無雷
#define ATTRIB_EMPTY 0
#define ATTRIB_MINE 1
// color defines
#define COLOR_BLACK RGB(0, 0, 0)
#define COLOR_DARK_GRAY RGB(128, 128, 128)
#define COLOR_GRAY RGB(192, 192, 192)
#define COLOR_WHITE RGB(255, 255, 255)
// 游戲狀態(tài)
#define GS_WAIT 0
#define GS_RUN 1
#define GS_DEAD 2
#define GS_VICTORY 3
// 游戲級別
#define LEVEL_PRIMARY 0
#define LEVEL_SECONDRY 1
#define LEVEL_ADVANCE 2
#define LEVEL_CUSTOM 3
// 笑臉按鈕矩形圖像 狀態(tài)
#define BUTTON_DOWN 0
#define BUTTON_VICTORY 1
#define BUTTON_DEAD 2
#define BUTTON_CLICK 3
#define BUTTON_NORMAL 4
// 失敗去的原因
#define DC_STRIKE_MINE 0
#define DC_ERROR_MINE 1
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -