Ejemplo n.º 1
0
/****************************************************************
...
*****************************************************************/
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);
}
Ejemplo n.º 2
0
/****************************************************************
  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;
}
Ejemplo n.º 3
0
/****************************************************************
...
*****************************************************************/
static void caravan_establish_trade_callback(GtkWidget *w, gpointer data)
{
  dsend_packet_unit_establish_trade(&client.conn, caravan_unit_id);
}
Ejemplo n.º 4
0
void py_caravan_establish_trade(struct unit* punit)
{
  dsend_packet_unit_establish_trade(&client.conn, punit->id);
}