📄 mine.h
字号:
#ifndef _mine_H_
#define _mine_H_
#include "types.h"
#define MINE_STR_X 132
#define MINE_STR_Y 66
#define MINE_HANG 11
#define MINE_LIE 10
#define MINE_NAME_x 10
#define MINE_NAME_y 5
#define MINE_MSG_x 30
#define MINE_MSG_y 10
#define MINE_POP_x 100
#define MINE_POP_y 5
#define MINE_AREA_SIZE 12
#define MINE_AREA_x 4
#define MINE_AREA_y 4//24
#define MINE_MINE_x 203
#define MINE_MINE_y 8 //128-24-12
#define MINE_TIME_x 200
#define MINE_TIME_y 46
#define MINE_MIN 10
#define MINE_MAX 40
#define MINE_TIME_MAX 999
#define MINE_MINE 0xFF
#define MINE_SMINE 0xEE
#define MINE_UNSURE 0xDD
#define MINE_FULL 0xCC
#define MINE_CURSOR 0xBB
#define MINE_CHK 0xAA
#define MINE_ERROR 0x99
#define MINE_NULL 0x00
#define MINE_0 0x0
#define MINE_1 0x1
#define MINE_2 0x2
#define MINE_3 0x3
#define MINE_4 0x4
#define MINE_5 0x5
#define MINE_6 0x6
#define MINE_7 0x7
#define MINE_8 0x8
#define MINE_9 0x9
#define MINE_WIN 240
#define MINE_FAIL 241
#define MINE_ESC 242
#define MINE_OVER 243
#define MINE_UP 244
#define MINE_DOWN 245
#define MINE_START 246
#define MINE_HOT 247
#define K_ESC KEY_LONG_MENU
#define K_ENTER KEY_PLAY
#define K_DOWN KEY_AB_REPEAT
#define K_LEFT KEY_PREV
#define K_RIGHT KEY_NEXT
#define K_QUESTION KEY_LONG_PLAY
#define K_UP KEY_MENU
typedef struct _area_msg {
UINT8 play_info;
UINT8 init_info;
} AREA_MSG;
typedef struct _game_mine_msg
{
UINT8 mine_status;
UINT16 mine_num;
UINT16 mine_time;
UINT16 mine_num_set;
UINT16 mine_cursor;
UINT16 mine_flash;
UINT8 mine_cur;
UINT8 mine_x;
UINT8 mine_y;
UINT8 mine_area[MINE_MAX];
AREA_MSG area[MINE_HANG][MINE_LIE];
}GAME_mine;
extern xdata GAME_mine mine;
extern UINT16 num_set;
void mine_init_mine();
int mine_set_mine();
char mine_handle(UINT8 key);
int mine_chk_win();
void mine_chk_start(void);
void mine_init_area();
void mine_creat_mine();
void mine_load_mine();
void mine_load_num();
void mine_handle_null();
int mine_handle_null_area(char x, char y);
void mine_show_box(void);
void mine_show_area(char x, char y, char num); //chk play and init
void mine_show_all_mine();
void mine_show_allarea();
void mine_show_cursor();
void mine_show_time();
void mine_show_mine();
void mine_get_xy();
void mine_get_cur();
void pint_debug(INT8 a);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -