Analgesics are drugs designed to relieve pain without causing the loss of consciousness. The different types of analgesic drugs include acetaminophen; nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen, naproxen, or prescription COX-2 inhibitors; and opioids, such as morphine, hydrocodone, and oxycodone.