--- path_finding2.h Mon Apr 8 10:04:58 2002 +++ path_finding3.h Wed Apr 10 09:14:31 2002 @@ -48,11 +48,14 @@ struct pf_parameter { /* - * Definition of the state of the unit at the start. + * Definition of the state of a virtual unit unit at the start. */ int start_x, start_y; - Unit_Type_id unittype; + enum unit_move_type move_type; + /* only F_IGZOC and F_IGTER are used */ + enum unit_flag_id flags; int moves_left; + int move_rate; struct player *owner; /* @@ -138,17 +141,17 @@ pf_map_t pf_get_map(const struct pf_parameter *const parameter); /* - * Tries to find a path in the given map to the given destination - * position. The path will be written in the given struct pf_path. - * Caller should test path->found_a_valid. + * Tries to find the best path in the given map to the given + * destination position. The path will be written in the given struct + * pf_path. The caller should test path->found_a_valid. */ void pf_get_path_from_map(pf_map_t map, int dest_x, int dest_y, struct pf_path *path); /* - * The next path with the lowest FC is written in the given struct - * pf_path. Caller should test path->found_a_valid. Behavior is - * undefined after pf_get_path_from_map was called. + * The next best path is written in the given struct pf_path. Caller + * should test path->found_a_valid. Behavior is undefined after + * pf_get_path_from_map was called. */ void pf_get_next_path_from_map(pf_map_t map, struct pf_path *path);