/// <inheritdoc/> public virtual int GetDirectedCostToExit(IHex hex, Hexside hexsideExit) { //return hex==null ? -1 // : this[hex.Coords].StepCost(hexsideExit); return(hex == null ? -1 : hex.StepCost(hexsideExit)); }