예제 #1
0
파일: PathNode.cs 프로젝트: s162995/CtC
    public override bool Equals(object obj)
    {
        if (ReferenceEquals(null, obj))
        {
            return(false);
        }

        if (ReferenceEquals(this, obj))
        {
            return(true);
        }

        if (obj.GetType() != this.GetType())
        {
            return(false);
        }

        PathNode other = (PathNode)obj;

        return(!System.Object.ReferenceEquals(null, CurLocation) &&
               CurLocation.Equals(other.CurLocation));
    }
예제 #2
0
파일: PathNode.cs 프로젝트: s162995/CtC
 public override bool IsGoalState()
 {
     return(CurLocation.Equals(dest));
 }