チェンジセット 1292
- コミット日時:
- 2008/09/07 16:42:50 (4 年前)
- ファイル:
-
- as3/GameAI/trunk/src/BoidsTest.as (追加)
- as3/GameAI/trunk/src/TreeTest.as (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/boids (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/boids/Boids.as (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/boids/mover (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/boids/mover/Mover.as (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Edge.as (更新) (1 diff)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Graph.as (更新) (3 diffs)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Node.as (更新) (1 diff)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/AStar.as (更新) (1 diff)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/BFS.as (更新) (1 diff)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/Dijkstra.as (更新) (1 diff)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/tree (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/tree/Tree.as (追加)
- as3/GameAI/trunk/src/jp/dip/hael/gameai/tree/TreeNode.as (追加)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Edge.as
r1201 r1292 18 18 this.dst = dst; 19 19 } 20 20 21 } 21 22 } as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Graph.as
r1201 r1292 25 25 * @param index インデクス 26 26 */ 27 public function node (index:int):Node { return nodes_[index]; }27 public function nodeRef(index:int):Node { return nodes_[index]; } 28 28 29 29 /** … … 31 31 * @param src 始点 32 32 */ 33 public function edge (src:int):Array /* of Edge */ { return edges_[src]; }33 public function edgeRef(src:int):Array /* of Edge */ { return edges_[src]; } 34 34 35 35 … … 150 150 151 151 152 152 153 153 154 154 155 //--------------------------------------------------------------------- 155 156 // 156 // P urivatevariables157 // Protected variables 157 158 // 158 159 //--------------------------------------------------------------------- 159 pr ivatevar nNodes_:int;160 pr ivatevar nodes_:Array/* of Node */;161 pr ivatevar edges_:Array/* of Array */;162 pr ivatevar 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; 163 164 164 165 } as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/Node.as
r1030 r1292 12 12 this.index = index; 13 13 } 14 14 15 } 15 16 } as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/AStar.as
r1205 r1292 47 47 } 48 48 49 var dsts:Array = graphRef_.edge (next.dst);49 var dsts:Array = graphRef_.edgeRef(next.dst); 50 50 for each(var e:WeightedEdge in dsts){ 51 51 if(route[e.dst] === undefined){ as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/BFS.as
r1198 r1292 45 45 } 46 46 47 var dsts:Array = graphRef_.edge (next.dst);47 var dsts:Array = graphRef_.edgeRef(next.dst); 48 48 for each(var e:Edge in dsts){ 49 49 if(!visited[e.dst]){ as3/GameAI/trunk/src/jp/dip/hael/gameai/graph/searcher/Dijkstra.as
r1205 r1292 46 46 } 47 47 48 var dsts:Array = graphRef_.edge (next.dst);48 var dsts:Array = graphRef_.edgeRef(next.dst); 49 49 for each(var e:WeightedEdge in dsts){ 50 50 if(route[e.dst] === undefined){

