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

📄 piece.java

📁 Java版的SAT求解器
💻 JAVA
字号:
package positronic.satisfiability.boardgame.twodimensional.twoplayer;

import java.awt.Color;

public class Piece implements IPiece,Cloneable
{
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		// TODO Auto-generated method stub

	}
	
	public Piece()
	{
		this(Color.black,IPiece.PLAYABLE);
	}
	
	public Piece(Color color,int status)
	{
		this.setColor(color);
		this.setStatus(status);
	}
	
	private Color color=IPiece.DEFAULTCOLOR;
	
	private int status=IPiece.PLAYABLE;

	public Color getColor()
	{
		return color;
	}

	public int getStatus()
	{
		return status;
	}

	public void setColor(Color color)
	{
		this.color = color;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}
	
	public Object clone()
	{
		return new Piece(this.getColor(),this.getStatus());
	}
}

⌨️ 快捷键说明

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