Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void SetAStarHType(AStarHType astarHType)
 {
     this.astarHType = astarHType;
 }