/**************************************************************** User selected that caravan should help in wonder building. *****************************************************************/ static int caravan_help_build_wonder_callback(struct widget *pWidget) { if (Main.event.button.button == SDL_BUTTON_LEFT) { dsend_packet_unit_help_build_wonder(&client.conn, pWidget->data.cont->id0); popdown_caravan_dialog(); } return -1; }
/**************************************************************** ... *****************************************************************/ static void caravan_help_build_wonder_callback(Widget w, XtPointer client_data, XtPointer call_data) { dsend_packet_unit_help_build_wonder(&client.conn, caravan_unit_id); destroy_message_dialog(w); caravan_dialog = 0; process_caravan_arrival(NULL); }
/**************************************************************** ... *****************************************************************/ static void caravan_help_build_wonder_callback(GtkWidget *w, gpointer data) { dsend_packet_unit_help_build_wonder(&client.conn, caravan_unit_id); }
void py_caravan_help_build_wonder(struct unit* punit) { dsend_packet_unit_help_build_wonder(&client.conn, punit->id); }