public static bool CanEnter( this MapUnit unit, HexCoords loc) { if (!map.InBounds(loc)) { return(false); } else { return(unit.CanEnter(map[loc])); } }
public static int CostToEnter( this MapUnit unit, MapCell cell) { if (unit.CanEnter(cell)) { return(1); } else { return(10000); } }