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

📄 mouserect.java

📁 java程序五子棋源代码。 java程序五子棋源代码。
💻 JAVA
字号:
package com.tianxia.qipai.model.game.gobang;

public class MouseRect {    //供指针移动的区域
	public int firX;   //区域的四个坐标
	public int firY;
	public int endX;
	public int endY;
	
	public int width;  //区域内指针每次移动的宽度和高度
	public int height;
	
	public int orignX;  //指针的初始位置
	public int orignY;
	
	public int xnum;  //指针横向和纵向可移动的最多格数
	public int ynum;
	
	public boolean rightrect;   //各个方向是否有相邻的区域 
	public boolean leftrect;
	public boolean uprect;
	public boolean downrect;
	public int rectflag;
	public MouseRect() {
		super();
		firX = 0;
		firY = 0;
		endX = 0;
		endY = 0;
		width = 0;
		height = 0;
		orignX = 0;
		orignY = 0;
		xnum = 0;
		ynum = 0;
		rightrect = false;
		leftrect = false;
		uprect  = false;
		downrect = false;
		// TODO 自动生成构造函数存根
	}
	
	public MouseRect(MouseRect rect){
		this.firX = rect.firX;
		this.firY = rect.firY;
		this.endX = rect.endX;
		this.endY = rect.endY;
		this.width = rect.width;
		this.height = rect.height;
		this.orignX = rect.orignX;
		this.orignY = rect.orignY;
		this.xnum = rect.xnum;
		this.ynum = rect.ynum;
		this.rightrect = rect.rightrect;
		this.leftrect = rect.leftrect;
		this.uprect = rect.uprect;
		this.downrect = rect.downrect;
		this.rectflag = rect.rectflag;
	}

}

⌨️ 快捷键说明

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