Goblinoids are a category of humanoid legendary creatures related to the goblin. The term originated in the Dungeons & Dragons fantasy role-playing game, in which goblins and related creatures are a staple of random encounters. Goblinoids are typically barbaric foes of the various human and demi-human races. Even though goblinoids in modern fantasy fiction are derived from J. R. R. Tolkien's orcs, in his Middle-earth orc and goblin were names for the same race of creatures. The main types of goblinoids in Dungeons & Dragons are goblins, bugbears and hobgoblins; these creatures are also figures of mythology, next to ordinary goblins.