public override bool Equals(State other) { StrikerIAState strikerState = other as StrikerIAState; return(strikerState.position == position); }
public override int EstimateCostToGoal(State current) { StrikerIAState strikerState = current as StrikerIAState; return((int)(Math.Abs(strikerState.position.x - strikerState.goalPosition.x) + Math.Abs(strikerState.position.y - strikerState.goalPosition.y))); }