/**
* Move クラスは、着点の情報(石の色・行番号・列番号)を表します。
* @author Jiro Suzuki
*/
public class Move{
private int stoneColor,row,col;
/**
* 着点の情報が空のインスタンスを生成します。
*/
public Move(){
stoneColor=0;
row=0;
col=0;
}
/**
* 指定された着点の情報が入ったインスタンスを生成します。
* @param stoneColor 石の色
* @param row 着点の行番号
* @param col 着点の列番号
*/
public Move(int stoneColor,int row,int col){
this.stoneColor=stoneColor;
this.row=row;
this.col=col;
}
/**
* 指定された着点の情報を設定します。
* @param stoneColor 石の色
* @param row 着点の行番号
* @param col 着点の列番号
*/
public void setMove(int stoneColor,int row,int col){
this.stoneColor=stoneColor;
this.row=row;
this.col=col;
}
/**
* 着点の石の色を取得します。
* @return 石の色
*/
public int getStoneColor(){
return stoneColor;
}
/**
* 着点の行番号を取得します。
* @return 行番号
*/
public int getRow(){
return row;
}
/**
* 着点の列番号を取得します。
* @return 列番号
*/
public int getCol(){
return col;
}
}