-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsweepmine.h
86 lines (69 loc) · 1.5 KB
/
sweepmine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#pragma once
#include <time.h>
#include <conio.h>
#include <vector>
#include <list>
#include <stdarg.h>
#define UINT8 unsigned char
#define UINT16 unsigned short
#define UINT32 unsigned int
#define INT8 char
#define INT16 short
#define INT32 int
#define MINE_TRUE 1
#define MINE_FALSE 0
#define MINE_NUM_0 0
#define MINE_NUM_1 1
#define MINE_NUM_2 2
#define MINE_NUM_3 3
#define MINE_NUM_4 4
#define MINE_NUM_5 5
#define MINE_NUM_6 6
#define MINE_NUM_7 7
#define MINE_NUM_8 8
#define MINE_BOOM 9
#define MINE_BOOMED 10
#define MINE_TRIANGLE 11
#define MINE_QUESTION 12
#define MINE_WIN 13
#define MINE_LOSE 14
#define MINE_PROCESS 15
#define MINE_CLOSED 16
#define SUBMENUGRAY_NULL 0
#define SUBMENUGRAY_PRIMACY 1
#define SUBMENUGRAY_MEDIUM 2
#define SUBMENUGRAY_SENIOR 3
#define SUBMENUGRAY_ALL 4
#define GRADE_PRIMACY_MAP_SIZE 10
#define GRADE_MEDIUM_MAP_SIZE 20
#define GRADE_SENIOR_MAP_SIZE 30
#define GRADE_PRIMACY_MINE_COUNT 10
#define GRADE_MEDIUM_MINE_COUNT 40
#define GRADE_SENIOR_MINE_COUNT 90
//#define GET_DEBUG_INFO
typedef struct tagMineNode {
UINT8 x;
UINT8 y;
UINT8 isMine;
UINT8 isMineNumCalc;
UINT8 isFlag;
UINT8 isQuestion;
UINT8 isChosen;
UINT8 type;
}S_MineNode, *pS_MineNode;
typedef struct tagMineBlockSize {
UINT8 w;
UINT8 h;
}mineBlockSize;
typedef struct tagLocation {
UINT16 x;
UINT16 y;
}Location, *pLocation;
typedef struct tagmineLocation {
UINT8 x;
UINT8 y;
}mineLocation, *pmineLocation;
typedef struct tagdebugInfo {
UINT32 len;
CString info;
}debugInfo;