Build a MoveCostFn that enforces a movement domain, delegating the
per-cell prices to landCost / navalCost. The returned function is what
findPath, getMovementRange, and computeFlowField all take, so one
unit type's rules are written once and shared by every search.
Build a MoveCostFn that enforces a movement domain, delegating the per-cell prices to
landCost/navalCost. The returned function is whatfindPath,getMovementRange, andcomputeFlowFieldall take, so one unit type's rules are written once and shared by every search.