Esempio n. 1
0
        }                 //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;
        }
Esempio n. 2
0
 public void ChangeColor()
 {
     this.PieceState = (this.pieceState == PIECE_STATE.STATE_BLACK) ? PIECE_STATE.STATE_WHITE : PIECE_STATE.STATE_BLACK;
 }