public void ConnectTo(Cell other) { m_connectedTo.Add(other); other.m_connectedTo.Add(this); Connected = true; other.Connected = true; Debug.WriteLine(string.Format("Connecting {0} -> {1}", new Coordinate(m_x, m_y), new Coordinate(other.m_x, other.m_y))); }
public bool Equals(Cell other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Id == Id; }