public override int GetHashCode() { return base.GetHashCode() ^ YPosition.GetHashCode(); } #endregion