40 int *turns,
bool *waypoint);
bool goto_pop_waypoint()
Returns whether there were any waypoint popped (we don't remove the initial position)
void send_patrol_route()
Send the current patrol route (i.e., the one generated via HOVER_STATE) to the server.
void init_client_goto()
Called only by handle_map_info() in client/packhand.c.
bool send_attack_tile(struct unit *punit, struct tile *ptile)
Send orders for the unit to move it to the arbitrary tile and attack everything it approaches.
void enter_goto_state(const std::vector< unit * > &units)
Enter the goto state: activate, prepare PF-template and add the initial part.
void send_rally_path(city *pcity, unit *punit, const PFPath &path, unit_order *final_order)
Send an arbitrary rally path for the city to the server.
bool goto_is_active()
Is goto state active?
void send_goto_route()
Send the current goto route (i.e., the one generated via HOVER_STATE) to the server.
void goto_add_waypoint()
Inserts a waypoint at the end of the current goto line.
bool is_valid_goto_draw_line(struct tile *dest_tile)
Puts a line to dest_tile on the map according to the current goto_map.
struct tile * tile_before_end_path(struct unit *punit, struct tile *ptile)
Finds penultimate tile on path for given unit going to ptile.
bool send_goto_tile(struct unit *punit, struct tile *ptile)
Send orders for the unit to move it to the arbitrary tile.
bool send_rally_tile(struct city *pcity, struct tile *ptile)
Send rally orders for the city to move new units to the arbitrary tile.
bool can_unit_move_now(const struct unit *punit)
Returns if unit can move now.
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.
void goto_unit_killed(struct unit *punit)
Called from control_unit_killed() in client/control.c.
bool is_valid_goto_destination(const struct tile *ptile)
Determines if a goto to the destination tile is allowed.
void exit_goto_state()
Tidy up and deactivate goto state.
void request_orders_cleared(struct unit *punit)
Send a packet to the server to request that the current orders be cleared.
void free_client_goto()
Called above, and by control_done() in client/control.c.
enum unit_activity activity