bool Tower::RangeCheck(const WorldObj& obj){ return (((abs(obj.GetposX()-GetposX())/30) <= range) && ((abs(obj.GetposY()-GetposY())/30) <= range)); }
void GetposY(const NODE *head, int &pos_y){ if(head->m_PLeftChild){ ++pos_y; GetposY(head->m_PLeftChild, pos_y); } }