【柯哀王道】左右两边的世界-作者:忧冷繁星
//按照棋盘模式构建棋盘大小
private void PanelInit(int width, int height, int modeChess){
this.width = width;
this.height = height;
this.modeChess = modeChess;
arrMapShow = new int[width+1][height+1];
for(int i = 0; i <= width; i++){
for(int j = 0; j <= height; j++){
arrMapShow[i][j] = -5;
}
}
}
//获取是否交换棋手的标识符
public boolean getisOdd(){
return this.isOdd;
}
//设置交换棋手的标识符
public void setisOdd(boolean isodd){
if(isodd)
this.isOdd=true;
else
this.isOdd=false;
}
//获取某棋盘方格是否有棋子的标识值
public boolean getisExist(){
return this.isExist;
}
//获取棋盘宽度
public int getWidth(){
return this.width;
}
//获取棋盘高度
public int getHeight(){
return this.height;
}
//获取棋盘模式
public int getModeChess(){