- a = Gtk::manage( new Canio() );
- else if (strcmp((const char *)selection_data->data, "item_y.png")==0) {
- a = Gtk::manage( new Y() );
- } else {
- a = Gtk::manage( new CItem((const char *)selection_data->data) );
- }
+ a = new Conduct();//Gtk::manage( new Conduct() );
+ else if (strcmp((const char *)selection_data->data, "item_y.png")==0)
+ a = new Union();//Gtk::manage( new Union() );
+ else if (strcmp((const char *)selection_data->data, "item_tanque.png")==0)
+ a = new Cistern();//Gtk::manage( new Cistern() );
+ else
+ a = new CItem();//Gtk::manage( new CItem((const char *)selection_data->data) );
+ //Seteo el ID del item
+ a->set_id(++id);
+ std::cout << can_drop(a, i*32, j*32) <<" --- tamanio lista = "<< listaItems.size()<< "item = "<<a->get_id()<<std::endl;
+ if ( can_drop(a, i*32, j*32) ) {