|
Computes the shortest path from sector (from_x, from_y) to sector (to_x, to_y). Sector coordinates must be in the range of (0, 0) to (SECTORS_X, SECTORS_Y). The call returns the number of the next gate (direction) that must be used, this can be DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_WEST and DIRECTION_EAST, or a negative value indicating one of the following errors:
-1: Source and destination sector are the same, this is considered an error.
-2: There is no path possible from source to destination sector.
-3: The galaxy data structure is not initialized (this should never happen!)
-4: A fatal error happened inside the routing code (this should not happen!)
|