public void setPosPieces(posType type, posSide side, int x, int y) { if (x < 0 || x > 9 || y < 0 || y > 10) { MessageBox.Show("error setPosPieces out of range"); } else { board[x][y][0] = type.ToString(); board[x][y][1] = side.ToString(); } }
public Horse(posType pType, posSide pSide) : base() { }
public Guard(posType pType, posSide pSide) : base(pType, pSide) { }
public General(posType pType, posSide pSide) : base(pType, pSide) { }
public Chariot(posType pType, posSide pSide) : base(pType, pSide) { }
public Cannon(posType pType, posSide pSide) : base(pType, pSide) { }
public Elephant(posType pType, posSide pSide) : base(pType, pSide) { }
public Pieces(posType pType, posSide pSide) { this.side = pSide.ToString(); this.type = pType.ToString(); }
public Soldier(posType pType, posSide pSide) : base(pType, pSide) { }