public static boolean regionContainsPoint(ObjectInstance o, int x, int y, boolean countBoundary){
		int top = o.getDiscValForAttribute(ATTTOP);
		int left = o.getDiscValForAttribute(ATTLEFT);
		int bottom = o.getDiscValForAttribute(ATTBOTTOM);
		int right = o.getDiscValForAttribute(ATTRIGHT);
		
		if(countBoundary){
			if(y >= bottom && y <= top && x >= left && x <= right){
				return true;
			}
		}
		else{
			if(y > bottom && y < top && x > left && x < right){
				return true;
			}
		}
		
		return false;
	}