Class ROT.Path.AStar
Extends
ROT.Path.
Simplified A* algorithm: all edges have a value of 1
Defined in: <rot.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
ROT.Path.AStar(toX, toY, passableCallback, options)
|
Method Attributes | Method Name and Description |
---|---|
compute(fromX, fromY, callback)
Compute a path from a given point
|
Class Detail
ROT.Path.AStar(toX, toY, passableCallback, options)
- Parameters:
- toX
- toY
- passableCallback
- options
- See:
- ROT.Path
Method Detail
compute(fromX, fromY, callback)
Compute a path from a given point
- Parameters:
- fromX
- fromY
- callback
- See:
- ROT.Path#compute