Which word refers to a character portrayed as an opponent of the main character in a narrative?

Aprotagonist
Bstatic character
Cantagonist
Dflat character