public TableSquare( Piece _piece, Rectangle _boundingBox ) { m_piece = _piece; m_rBoundingBox = _boundingBox; }
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; }