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