+bool CItem::is_occupied_area(int _a, int _b)
+{
+ if ( ( _a >= x ) && ( _a < x+image->get_width()) && (_b >= y) && (_b < y+image->get_height()) )
+ return true;
+ else return false;
+}
+
+ConnectorType CItem::is_other_connection_area(int _a, int _b, CItem **_item)
+{
+ ConnectorType temp2;
+ std::list<CItem *>::iterator i = listaItems->begin();
+ while ( i != listaItems->end() ) {
+ CItem *temp = *i;
+ if (temp != this)
+ if ( (temp2 = temp->get_connector_type(_a,_b)) != UNDEF ) {
+ *_item = temp;
+ return temp2;
+ }
+ i++;
+ }
+ return UNDEF;
+}
+ConnectorType CItem::get_connector_type( int _a, int _b )
+{
+ return UNDEF;
+}
+void CItem::set_default_connector()