/// <inheritdoc/> public virtual int DirectedStepCost(IHex hex, Hexside hexsideExit) { return(hex == null ? -1 : hex.DirectedStepCost(hexsideExit)); }