Hydrocodone is a synthetic codeine (opiate as was mentioned).... ibuprofen is an analgesic and anti-imflammatory. Not the same class, in fact there is a combination of the two substances called VICOPROFEN.... which is similar to Vicodin but instead of acetiminophen it's ibuprofen instead, I'm not sure how you get hydrocodone by itself, because it is dispensed in pharmacys in combination with other medications. If its Vicodin you are using, its a bit of overkill, as there is already Tylenol in Vicodin. If that's the case have yer doctor write it for vicoprofen if you can't handle the tylenol or it isn't working for you.
Anyhooo pharmacy student, and current pharmacy tech so don't ask me about the mechanisms cuz I'd draw a nice big question mark for ya.