チェンジセット 1292

差分発生行の前後
無視リスト:
コミット日時:
2008/09/07 16:42:50 (4 年前)
コミッタ:
hael
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Edge.as

    r1201 r1292  
    1818                        this.dst = dst; 
    1919                } 
     20 
    2021        } 
    2122} 
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Graph.as

    r1201 r1292  
    2525                 * @param index インデクス 
    2626                 */ 
    27                 public function node(index:int):Node { return nodes_[index]; } 
     27                public function nodeRef(index:int):Node { return nodes_[index]; } 
    2828                 
    2929                /** 
     
    3131                 * @param src 始点 
    3232                 */ 
    33                 public function edge(src:int):Array /* of Edge */ { return edges_[src]; } 
     33                public function edgeRef(src:int):Array /* of Edge */ { return edges_[src]; } 
    3434                 
    3535                 
     
    150150                 
    151151                 
     152                 
    152153 
    153154                 
    154155                //--------------------------------------------------------------------- 
    155156                // 
    156                 //  Purivate variables 
     157                //  Protected variables 
    157158                // 
    158159                //--------------------------------------------------------------------- 
    159                 private var nNodes_:int; 
    160                 private var nodes_:Array/* of Node */; 
    161                 private var edges_:Array/* of Array */; 
    162                 private var isDigraph_:Boolean; 
     160                protected var nNodes_:int; 
     161                protected var nodes_:Array/* of Node */; 
     162                protected var edges_:Array/* of Array */; 
     163                protected var isDigraph_:Boolean; 
    163164                 
    164165        } 
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Node.as

    r1030 r1292  
    1212                        this.index = index; 
    1313                } 
     14 
    1415        } 
    1516} 
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/AStar.as

    r1205 r1292  
    4747                                } 
    4848                                 
    49                                 var dsts:Array = graphRef_.edge(next.dst); 
     49                                var dsts:Array = graphRef_.edgeRef(next.dst); 
    5050                                for each(var e:WeightedEdge in dsts){ 
    5151                                        if(route[e.dst] === undefined){ 
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/BFS.as

    r1198 r1292  
    4545                                } 
    4646                                 
    47                                 var dsts:Array = graphRef_.edge(next.dst); 
     47                                var dsts:Array = graphRef_.edgeRef(next.dst); 
    4848                                for each(var e:Edge in dsts){ 
    4949                                        if(!visited[e.dst]){ 
  • as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/Dijkstra.as

    r1205 r1292  
    4646                                } 
    4747                                 
    48                                 var dsts:Array = graphRef_.edge(next.dst); 
     48                                var dsts:Array = graphRef_.edgeRef(next.dst); 
    4949                                for each(var e:WeightedEdge in dsts){ 
    5050                                        if(route[e.dst] === undefined){