PathFinding
This class implements the PathFinding algorithm using A-Star.
TODO: PathFinding Constructors
Methods
PathFinding
.
GetPath
(
dst_x
,
dst_y
,
ignoremob
)
PathFinding
.
GetPath
(
dst_x
,
dst_y
,
ignoremob
)
Compute the path for the given destination and returns a list of Tile (coordinates).
Parameters
dst_x
Int32
Destination X.
dst_y
Int32
Destination Y.
ignoremob
Boolean
Ignores any mobiles with the path calculation.
Return
List[Tile]
List of Tile objects, each holds a .X and .Y coordinates.
PathFinding
.
Go
(
r
)
PathFinding
.
Go
(
r
)
Check if a destination is reachable.
Parameters
r
PathFinding.Route
A customized Route object.
Return
Boolean
True: if a destination is reachable.
PathFinding
.
RunPath
(
path
,
timeout
,
debugMessage
,
useResync
)
PathFinding
.
RunPath
(
path
,
timeout
,
debugMessage
,
useResync
)
Parameters
path
List[Tile]
timeout
Single
debugMessage
Boolean
useResync
Boolean
Return
Boolean

PathFinding
.
Tile
(
x
,
y
)
PathFinding
.
Tile
(
x
,
y
)
Create a Tile starting from X,Y coordinates (see PathFindig.RunPath)
Parameters
x
Int32
X coordinate
y
Int32
Y coordinate
Return
Tile
Returns a Tile object