X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/31b3e321726d5c3fe720dd216687d3138523714f..f5a1e732bf3907cabd004932aba3256b31d9d282:/Constructor/cistern.cpp?ds=inline diff --git a/Constructor/cistern.cpp b/Constructor/cistern.cpp index b42f690..fd49a6e 100644 --- a/Constructor/cistern.cpp +++ b/Constructor/cistern.cpp @@ -171,24 +171,9 @@ ConnectorType Cistern::get_connector_type(int _a, int _b) } return UNDEF; } - -/* -ConnectorType Cistern::is_connection_area(int _a, int _b) + +void Cistern::set_default_connector() { - switch (imgActual) { - case 0: - if ( (_a <= x+22)&&(_a>=x+10)&&(_b<=y+10)&&(_b > y) ) - return connect_vec[0].type; - if ( (_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 connect_vec[1].type; - break; - case 1: - if ( (_a <= x+image->get_width()-10)&&(_a>=x+image->get_width()-22)&&(_b<=y+10)&&(_b > y) ) - return connect_vec[0].type; - if ( (_a <= x +10)&&(_a > x)&&(_b<=y+image->get_height()-10)&&(_b >=y+image->get_height()-22) ) - return connect_vec[1].type; - break; - } - return UNDEF; + connect_vec[0].type = IN; + connect_vec[1].type = OUT; } -*/