protected int[] canPassTerrainTypes; // 可通过地形表 public AStarImpl(AStarMapPath astarMapPath, AStarHType astarHType, int[] canPassObstacleTypes, int[] canPassTerrainTypes) { this.astarMapPath = astarMapPath; SetAStarHType(astarHType); SetCanPassType(canPassObstacleTypes, canPassTerrainTypes); SetRange(0, 0, astarMapPath.Height() - 1, astarMapPath.Width() - 1); }
public void SetAStarHType(AStarHType astarHType) { this.astarHType = astarHType; }