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

📄 step.java

📁 一个黑白棋的源代码(尚未完成
💻 JAVA
字号:
/* * Step.java * * Created on 2007-9-29, 10:25:28 * * To change this template, choose Tools | Templates * and open the template in the editor. */package org.yangcq.logic.step;/** * * @author Administrator */public class Step{    private int x; //棋子坐标x    private int y; //棋子坐标y    Boolean black =  null;//颜色    public Step(int x, int y, Boolean black)    {        this.x = x;        this.y = y;        this.black = black;    }    public void reverse()    {        if (this.black != null)        {            this.black = new Boolean(!black.booleanValue());        }    }    public int getX()    {        return x;    }    public int getY()    {        return y;    }    public void setX(int x)    {        this.x = x;    }    public void setY(int y)    {        this.y = y;    }    public Boolean getColor()    {        return this.black;    }    public void setColor(Boolean black)    {        this.black = black;    }    public Step clone()    {        return new Step(this.getX(),this.getY(),new Boolean(this.getColor().booleanValue()));    }}

⌨️ 快捷键说明

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