Méthode | Description | |
---|---|---|
GeneratePath ( Vector2 pxStart, Vector2 pxEnd, TeeEngine engine, |
Uses the AStar algorithm to generate a Path from pxStart to pxEnd of valid ANodes to pass through. What is considered to be a valid ANode is determined by the current delegate method assigned to the instance's Validator property. The method will return an empty path if the location is impossible to reach from the specified start location.
|
public GeneratePath ( Vector2 pxStart, Vector2 pxEnd, TeeEngine engine, |
||
pxStart | Vector2 | |
pxEnd | Vector2 | |
engine | TeeEngine | |
gameTime | ||
validator | NodeValidationHandler | |
Résultat |