X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a143e957a68145eece4b5b60e0bf8bee0d0693cd..2695534342641710721ae3d842915094b384f9db:/Constructor/item.cpp diff --git a/Constructor/item.cpp b/Constructor/item.cpp index b526867..b4a42fe 100644 --- a/Constructor/item.cpp +++ b/Constructor/item.cpp @@ -54,10 +54,10 @@ void CItem::on_menu_popup_conectar() { } -void CItem::set_position(int x, int y) +void CItem::set_position(int _x, int _y) { - this->x = x; - this->y = y; + this->x = _x; + this->y = _y; } int CItem::get_position_x() @@ -70,16 +70,16 @@ int CItem::get_position_y() return y; } -bool CItem::is_occupied_area(int a, int b) +bool CItem::is_occupied_area(int _a, int _b) { - if ( (a >= x ) && ( a < x+image->get_width()) && (b >= y) && (b < y+image->get_height()) ) + if ( ( _a >= x ) && ( _a < x+image->get_width()) && (_b >= y) && (_b < y+image->get_height()) ) return true; else return false; } -void CItem::set_id(int id) +void CItem::set_id(int _id) { - ID = id; + ID = _id; } int CItem::get_id()