Freeciv-3.2
|
Go to the source code of this file.
Enumerations | |
enum | goto_tile_state { GTS_TURN_STEP , GTS_MP_LEFT , GTS_EXHAUSTED_MP , GTS_COUNT } |
Enter the goto state: activate, prepare PF-template and add the initial part.
Definition at line 1001 of file goto.c.
Referenced by patrol_here_callback(), request_unit_connect(), request_unit_goto(), request_unit_patrol(), and mr_menu::slot_delayed_goto().
Tidy up and deactivate goto state.
Definition at line 1022 of file goto.c.
Referenced by paradrop_here_callback(), patrol_here_callback(), set_hover_state(), and map_view::shortcut_pressed().
Called above, and by control_done() in client/control.c.
Definition at line 162 of file goto.c.
Referenced by control_free(), and init_client_goto().
Inserts a waypoint at the end of the current goto line.
Definition at line 487 of file goto.c.
Referenced by request_unit_connect(), request_unit_goto(), and request_unit_patrol().
Return the path length (in turns). WARNING: not useful for determining paths of scattered groups.
Definition at line 1068 of file goto.c.
Referenced by get_unit_info_label_text2().
Returns whether there were any waypoint popped (we don't remove the initial position)
Definition at line 524 of file goto.c.
Referenced by key_cancel_action().
bool goto_tile_state | ( | const struct tile * | ptile, |
enum goto_tile_state * | state, | ||
int * | turns, | ||
bool * | waypoint | ||
) |
Called from control_unit_killed() in client/control.c
Definition at line 1040 of file goto.c.
Referenced by control_unit_killed().
Called only by handle_map_info() in client/packhand.c.
Definition at line 152 of file goto.c.
Referenced by handle_map_info().
Determines if a goto to the destination tile is allowed.
Definition at line 179 of file goto.c.
Referenced by control_mouse_cursor().
Puts a line to dest_tile on the map according to the current goto_map. If there is no route to the dest then don't draw anything.
Definition at line 1338 of file goto.c.
Referenced by do_unit_connect(), do_unit_goto(), do_unit_patrol_to(), overview_update_line(), and update_line().
Find the path to the nearest (fastest to reach) allied city for the unit, or NULL if none is reachable.
Definition at line 1982 of file goto.c.
Referenced by request_unit_return().
Send a packet to the server to request that the current orders be cleared.
Definition at line 1363 of file goto.c.
Referenced by clear_unit_orders().
Send orders for the unit to move it to the arbitrary tile and attack everything it approaches. Returns FALSE if no path is found.
Definition at line 1621 of file goto.c.
Referenced by mr_menu::slot_execute_orders().
void send_connect_route | ( | enum unit_activity | activity, |
struct extra_type * | tgt | ||
) |
Send the current connect route (i.e., the one generated via HOVER_STATE) to the server.
Definition at line 1713 of file goto.c.
Referenced by do_unit_connect().
Send an arbitrary goto path for the unit to the server.
Definition at line 1530 of file goto.c.
Referenced by request_unit_return(), send_goto_route(), and send_goto_tile().
Send the current goto route (i.e., the one generated via HOVER_STATE) to the server. The route might involve more than one part, if waypoints were used. FIXME: danger paths are not supported.
Definition at line 1869 of file goto.c.
Referenced by do_unit_goto(), and key_unit_action_select_tgt().
Send orders for the unit to move it to the arbitrary tile. Returns FALSE if no path is found.
Definition at line 1551 of file goto.c.
Referenced by goto_dialog::go_to_city(), goto_city_callback(), goto_cmd_callback(), goto_here_callback(), and mr_menu::slot_autocaravan().
Send the current patrol route (i.e., the one generated via HOVER_STATE) to the server.
Definition at line 1647 of file goto.c.
Referenced by do_unit_patrol_to().
Send rally orders for the city to move new units to the arbitrary tile. Returns FALSE if no path is found for the currently produced unit type.
Definition at line 1575 of file goto.c.
Referenced by rally_set_tile(), and map_view::shortcut_pressed().