Beispiel #1
0
 public TableSquare( Piece _piece, Rectangle _boundingBox )
 {
     m_piece = _piece;
     m_rBoundingBox = _boundingBox;
 }
Beispiel #2
0
        public bool Equals(Piece piece)
        {
            if (this.GetType() != piece.GetType())
                return false;
            if (this.Position.X != piece.Position.X)
                return false;
            if (this.Position.Y != piece.Position.Y)
                return false;
            if (this.isAlive != piece.isAlive)
                return false;
            if (this.isBlack != piece.isBlack)
                return false;

            return true;
        }