/// <summary> /// Determines whether two Cell instances are equal /// </summary> /// <param name="other">The Cell to compare this instance to</param> /// <returns>True if the instances are equal; False otherwise</returns> /// <exception cref="NullReferenceException">Thrown if .Equals is invoked on null Cell</exception> protected bool Equals(Cell other) { if (other == null) { return(false); } return(X == other.X && Y == other.Y && IsTransparent.Equals(other.IsTransparent) && IsWalkable.Equals(other.IsWalkable) && IsInFov.Equals(other.IsInFov) && IsExplored.Equals(other.IsExplored)); }