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

📄 macro.h

📁 有计算机图形学、图像处理、dbms、sniffer、中游俄罗斯外挂、othello、遗传算法、舌苔分析等程序。
💻 H
字号:
#if !defined(MACRO_INCLUEDED)
#define MACRO_INCLUEDED

//#define H3 23
//#define H2 22
//#define H1 21
#define H0 20
#define H1 19
#define H2 18
#define H3 17
#define M0 8
#define M1 9
#define M2 10
#define M3 11
#define ROW_BLOCK_COUNT 14//16        1--14显示
#define COL_BLOCK_COUNT 20//24        20--1显示

struct POS
{
	int row;
	int col;

	inline POS()
	{
		row=0;
		col=0;
	}
    inline POS(int r,int c)
	{
		row=r;
		col=c;
	}
};
struct CLR_TYPE
{
	COLORREF clr;
    int type;
};
const POS init_pos[76]={POS(H1,M0),POS(H0,M0),POS(H1,M1),POS(H0,M1),
		          POS(H0,M0),POS(H0,M1),POS(H0,M2),POS(H0,M3),
		          POS(H3,M0),POS(H2,M0),POS(H1,M0),POS(H0,M0),
				  POS(H1,M0),POS(H0,M0),POS(H2,M1),POS(H1,M1),
				  POS(H1,M0),POS(H1,M1),POS(H0,M1),POS(H0,M2),
				  POS(H2,M0),POS(H1,M0),POS(H1,M1),POS(H0,M1),
				  POS(H0,M0),POS(H1,M1),POS(H0,M1),POS(H1,M2),

				  POS(H2,M0),POS(H1,M0),POS(H0,M0),POS(H1,M1),
				  POS(H0,M0),POS(H1,M1),POS(H0,M1),POS(H0,M2),
				  POS(H1,M0),POS(H2,M1),POS(H1,M1),POS(H0,M1),
				  POS(H1,M0),POS(H1,M1),POS(H0,M1),POS(H1,M2),
				  
				  POS(H1,M0),POS(H0,M0),POS(H1,M1),POS(H1,M2),
				  POS(H2,M0),POS(H1,M0),POS(H0,M0),POS(H0,M1),
				  POS(H0,M0),POS(H1,M2),POS(H0,M1),POS(H0,M2),
				  POS(H2,M0),POS(H2,M1),POS(H1,M1),POS(H0,M1),
			 	  
				  POS(H1,M0),POS(H0,M0),POS(H0,M1),POS(H0,M2),
				  POS(H0,M0),POS(H2,M1),POS(H1,M1),POS(H0,M1),
				  POS(H1,M0),POS(H1,M1),POS(H1,M2),POS(H0,M2),
				  POS(H2,M0),POS(H1,M0),POS(H0,M0),POS(H2,M1)
	};
const int mask_pos[7]={0,1,3,5,7,11,15};
//对于三种方块,有三中情形不于考虑
const int cutoff[22]={2,1,4,1,3,1,3,2,2,2,2,2,2,1,1,3,2,1,2,3,1,1};
const int mask_cutoff[7]={0,1,4,7,10,14,18};

const BYTE full2[ROW_BLOCK_COUNT+1]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
const BYTE full1[ROW_BLOCK_COUNT+2]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};

//Attack函数用
const int atk_sts[7]={0,1,0,0,2,1,1};
const int lstdclr[7]={2,2,2,2,2,3,3};//低位标准擦除
const int TurnCount[7]={0,1,1,1,3,3,3};

//Atk用
const int atk_heightScore=300;//最后要改回
//遮新洞扣分3000 ;
const int atk_ClearScore[5]={0,1000,2000,3000,4000};
const int atk_NullScore[4]={0,1000,1500,4000};
const int atk_SubScore[4]={0,0,1000,8000};
//GetScore用
const int ord_heightScore=700;//最后要改回
//遮新洞扣分5000 ;
const int ord_ClearScore[2]={0,1300};
const int ord_NullScore[4]={0,1500,2000,1500};
const int ord_SubScore[4]={0,0,1000,8000};
#endif // !defined(MACRO_INCLUEDED)
//备注:全局变量button???

⌨️ 快捷键说明

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