} //empty constructor public Piece(PIECE_STATE color, int x, int y, Point p) { this.PieceState = color; this.X = x; this.Y = y; this.Location = p; this.Size = s; this.Visible = true; this.FlatAppearance.BorderColor = Color.DarkSlateGray; }
public void ChangeColor() { this.PieceState = (this.pieceState == PIECE_STATE.STATE_BLACK) ? PIECE_STATE.STATE_WHITE : PIECE_STATE.STATE_BLACK; }