]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/splitter.cpp
Se agrega el body al handler del msg desde el servidor.
[z.facultad/75.42/plaqui.git] / Constructor / splitter.cpp
index 2e11992c5839e09999e50d434677b39bcce96129..4804849f998c131bb09e2463e5e13bc05c5a4497 100644 (file)
@@ -179,23 +179,8 @@ ConnectorType Splitter::get_connector_type(int _a, int _b)
        return UNDEF;
 }      
 
-/*
-bool Splitter::is_connection_area(int _a, int _b)
+void Splitter::set_default_connector()
 {
-       switch (imgActual) {
-               case 0: if ( ( (_a <= x+10)&&(_a > x) && (_b <=y+22)&&(_b>=y+10) ) ||
-                                                ( (_a <= x+image->get_width()-10)&&(_a>=x+image->get_width()-22)&&(_b<=y+image->get_height()-1)&&(_b>=y+image->get_height()-10) ) )
-                                               return true;
-               case 1: if ( ( (_a <= x+image->get_width()-10)&&(_a >= x+image->get_width()-22) && (_b <=y+10)&&(_b > y) ) ||
-                                                ( (_a <= x+10)&&(_a > x)&&(_b<=y+image->get_height()-10)&&(_b>=y+image->get_height()-22) ) )
-                                               return true;
-               case 2: if ( ( (_a <= x+22)&&(_a >= x+10) && (_b <=y+10)&&(_b > y) ) ||
-                                                ( (_a <= x+image->get_width()-1)&&(_a>=x+image->get_width()-10)&&(_b<=y+image->get_height()-10)&&(_b>=y+image->get_height()-22) ) )
-                                               return true;
-               case 3: if ( ( (_a <= x+image->get_width()-1)&&(_a >= x+image->get_width()-10) && (_b <=y+22)&&(_b>=y+10) ) ||
-                                                ( (_a <= x+22)&&(_a>=x+10)&&(_b<=y+image->get_height()-1)&&(_b>=y+image->get_height()-10) ) )
-                                               return true;
-       }
-       return false;
+       connect_vec[0].type = UNDEF;
+       connect_vec[1].type = UNDEF;
 }
-*/