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

📄 cfinals.java

📁 j2me
💻 JAVA
字号:
package mole.Rusfk;

public interface CFINALS {
	static final byte back_w_h = 10;//背景方块的大小
	static final byte db_xy = 8;//道边的大小
	static final byte LEFTAREA_HEIGHT_NUM = 26;//下方菜单的高度
	static final byte LEFTAREA_WIDTH_NUM = 26;//下方菜单的宽度
	static final byte bz_all_num = 15;//爆炸的总帧数
	static final byte bz_init_x =50;//发出炸弹的坐标;
	static final byte bz_init_y =110;//发出炸弹的坐标;
	
	//==================================不同版本需要修改的变量=====================================//
	//172*220:offsetx=1,offsety=6,inity=1
	//172*208:offsetx=1,offsety=5,inity=2	//N7610,K700
	//172*204:offsetx=1,offsety=6,inity=3	//E398,V600
	static final byte offsetx=0;			//单元绘制XY象素补偿
	static final byte offsety=4;			//单元掉落时起始Y象素补偿
	static final byte inity=2;				//单元掉落时起始Y单元规格补偿
	//==========================================================================================//
	 
	static final byte SCENARIO_MAINMENU=1;
	static final byte SCENARIO_PLAY=2;
	static final byte SCENARIO_HANDUP=3;		
	static final byte SCENARIO_SCORE=4;		
//	static final byte SCENARIO_CHATINFO=5;
	static final byte SCENARIO_EXIT=6;
	static final byte SCENARIO_INFOEXIT=7;
	static final byte SCENARIO_BREAKEXIT=8;
	static final byte SCENARIO_LOWCOINEXIT=9;
	static final byte SCENARIO_PLAYMYSELF=10;	//练习模式
	
	static final byte SCENARIO_SHOWPLAYINFO=50;	//取这些值表示我不负责管理
	static final byte SCENARIO_CHAT=54;	//取这些值表示我不负责管理
	static final byte SCENARIO_HELP=51;
	static final byte SCENARIO_CHATMENU=52;
	static final byte SCENARIO_SETUP=53;
	
	static final short EM_HANDUP=300;		//举手消息
	static final short EM_START=301;		//一局开始消息
	static final short EM_END=302;			//一局结束消息
	static final short EM_CHAT=303;			//聊天消息
	static final short EM_WINLOSE=304;		//收到此消息的玩家胜利
	static final short EM_LOSE=305;			//收到此玩家游戏失败
	static final short EM_TEAM=306;			//组队消息
	static final short EM_NOSTART=307;		//开始失败(当前无效)	
	static final short EM_LOSETEAM=308;		//一队失败
	static final short EM_ASKHASPLAY=309;	//询问我进入前是否已经开始游戏
	static final short EM_ASKHASTEAM=310;	//询问当前已经组队信息
	static final short EM_QUICKREADY=311;	//催促开始
	static final short EM_STARTFAIL=312;	//举手失败
	static final short EM_LOWCOIN=313;		//金币或积分不足
	static final short EM_ALLFK=314;		//发送方块给晚来的玩家
	static final short EM_JFK=315;		//发送方块给收到减行的玩家
	
	static final short EM_NEWCELLDOWN=400;	//新单元落地
	static final short EM_NOWCENG=401;		//当前行数(绝对行数,兼容40)
	static final short EM_ADDCENG=402;		//收行或升级加行(增量行数,兼容60)
	static final short EM_PROP=403;			//道具
	static final short EM_DELCENG=404;		//机器人消行
	static final short EM_PROP_TOOL=405;	
	static final short EM_ADDCENG_BACK=406;

	static final byte MAXCENG = 23;			
	static final byte MAXSTYLE=19;			
	static final byte MAXROWS=12;			
	static final byte MAXBASESTYLE=7;
	
	static final byte PLAYNOT=-1;			
	static final byte PLAYIN=0;
	static final byte PLAYREADY=1;
	static final byte PLAYNOW=2;
	static final byte PLAYWIN=3;
	static final byte PLAYLOSE=4;
	class MyCell{
		public byte ab[][] = new byte[5][2];
		public byte nextindex = 0;
	}
	//单元相对坐标,存储相对坐标信息和下次变形的索引号
	static final byte tmpbox[][]={
										{0,0,0,0, 1, 0, 0, 1, 1, 1, 0}, //#1---0---*0
										{0,0,0,0, 1, 0, 2, 0,-1, 0, 2}, //l1---1---*1
										{0,0,0,0, 0,-1, 0, 1, 0, 2, 1}, //l2---2
										{0,0,0,0,-1, 0, 0, 1, 1, 1, 4}, //Z1---3---*2
										{0,0,0,0, 0, 1, 1,-1, 1, 0, 3}, //Z2---4
										{0,0,0,0, 1, 0, 0, 1,-1, 1, 6}, //S1---5---*3
										{0,0,0,0, 0,-1, 1, 0, 1, 1, 5}, //S2---6
										{0,0,0,0,-1, 0, 1, 0, 0, 1, 8}, //T1---7---*4
										{0,0,0,0, 0,-1, 0, 1,-1, 0, 9}, //T2---8
										{0,0,0,0,-1, 0, 1, 0, 0,-1,10}, //T3---9
										{0,0,0,0, 0,-1, 0, 1, 1, 0, 7}, //T4---10
										{0,0,0,0,-1, 0, 1, 0, 1, 1,12}, //J1---11--*5
										{0,0,0,0, 0,-1, 0, 1,-1, 1,13}, //J2---12
										{0,0,0,0,-1,-1,-1, 0, 1, 0,14}, //J3---13
										{0,0,0,0, 0,-1, 0, 1, 1,-1,11}, //J4---14
										{0,0,0,0,-1, 0,-1, 1, 1, 0,16}, //L1---15--*6
										{0,0,0,0,-1,-1, 0,-1, 0, 1,17}, //L2---16
										{0,0,0,0,-1, 0, 1, 0, 1,-1,18}, //L3---17
										{0,0,0,0, 0,-1, 0, 1, 1, 1,15}, //L4---18
										};

	static final byte tmpgogo[][]={
										{0,0,3,3,0,0,0,0,3,3,0,0},
										{0,3,0,0,3,0,0,3,0,0,3,0},
										{0,3,0,0,0,0,0,3,0,0,3,0},
										{0,3,0,3,3,0,0,3,0,0,3,0},
										{0,3,0,0,3,0,0,3,0,0,3,0},
										{0,0,3,3,0,0,0,0,3,3,0,0},
										{0,0,0,0,0,0,0,0,0,0,0,0},
									};
	static final byte tmp1[][]={
		{0,0,0,0,0,0,1,0,0,0,0,0},
		{0,0,0,0,0,1,1,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,0},
	};
	static final byte tmp2[][]={
		{0,0,0,0,0,2,2,0,0,0,0,0},
		{0,0,0,0,2,0,0,2,0,0,0,0},
		{0,0,0,0,0,0,0,2,0,0,0,0},
		{0,0,0,0,0,0,2,0,0,0,0,0},
		{0,0,0,0,0,2,0,0,0,0,0,0},
		{0,0,0,0,2,2,2,2,0,0,0,0},
		{0,0,0,0,0,0,0,0,0,0,0,0},
	};
	static final byte tmp3[][]={
		{0,0,0,0,0,4,4,0,0,0,0,0},
		{0,0,0,0,4,0,0,4,0,0,0,0},
		{0,0,0,0,0,0,0,4,0,0,0,0},
		{0,0,0,0,0,4,4,4,0,0,0,0},
		{0,0,0,0,0,0,0,4,0,0,0,0},
		{0,0,0,0,4,0,0,4,0,0,0,0},
		{0,0,0,0,0,4,4,0,0,0,0,0},
	};
	
	static final byte tmpdata[][]={
		{99,99,99,99,99,99,99,99,99,99,99,99,99,99},
		{99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,99},
		{99, 0,50, 0,50, 0,50, 0,50, 0,50, 0,50,99},
		{99,50, 0,50, 0,50, 0,50, 0,50, 0,50, 0,99},
									};
	
	//典型单元在所有单元中的索引号
	static final byte boxindex[] = {0,1,3,5,7,11,15,
											19,20,22,24,
												28,29,33,35,37,};

	//主要窗口尺寸
	static final byte SCOREBACKWIDTH=120; 
	static final byte SCOREBACKHEIGHT=60; 
	static final byte TEAMBACKWIDTH=88; 	
	static final byte TEAMBACKHEIGHT=120;
	static final byte MENUBACKWIDTH=50; 	
	static final byte MENUBACKHEIGHT=100;
	static final byte GameMenuMaxIndex=4;
	static final byte TeamSelMenuMaxIndex=4;
	
	static final String[] gd_name={
		"[上]:旋转方块",
		"[下]:快速下落",
		"[左]:向左移动",
		"[右]:向右移动",
		"[确认]:立即到底",
		"[1]:对自己使用道具",
		"[2][3][4]:",
		"对相应玩家使用道具",
		"[5]:切换道具",
		"[7]:玩家列表",
    	"[8]:预设语句",
		"[9]:聊天室",
        "[0]:状态栏",
		"",
		""
	};
	
	static final int[] color_all ={
		0x13ca1c,
		0xff4910,
		0x4280d6,
		0xffae18
	};
	
	static final String[] tool_name={
		"炸弹","加1层","加2层","加3层","加速","减1层","减2层","减3层","减速"
	};

	public static final int MUSIC_START = 0;
	public static final int MUSIC_HURRY = 1;
	public static final int MUSIC_WIN = 2;
	public static final int MUSIC_LOSE = 3;

	public	static final int	NULL_KEY = 200;
	
//	static final int[] skin={
//		0XFFD5E6,//游戏区域的底色      0	
//		0x5c7aa2,//游戏区域的方块格1		1
//		0x54739d,//游戏区域的方块格2		2
//		0xb5dbf7,//背景的方格1			3
//		0x7ebfef,//背景的方格2			4
//		0xffa4c8,//头像区域的底色			5
//		0x5c7aa2,//方块缩略图的底色		6
//		0xf8f0c0,//对话框边线1			7
//		0xe0a078,//对话框边线2			8
//		0xd08950,//对话框边线3			9
//		0xf0c898,//对话框边线4			10
//		0xe0a078,//对话框边线5			11
//		0x78b8e0,//对话框底色				12
//		0xd08950,//对话框按钮投影			13
//		0xf0c898,//对话框按钮底色			14
//		0x9c5108,//菜单外框				15
//		0xf8f0c0,//菜单选中项的底色		16
//		0xfcac53,//菜单选中项的内框		17
//		0xf6dd8e,//菜单选中项的外框		18
//		0xffe3d3,//菜单未选中项的底色		19
//		0xd08a50,//菜单未选中项的内框		20
//		0xf2bfa3,//菜单未选中项的外框		21
//		0x0012d1,//道具框的底色			22
//	};
	
	
}

⌨️ 快捷键说明

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