Not sure of the origin but I'd guess dice games. I'd take "all encompassing" here to mean that the guy had fully entered into the role of Mr. X, more intensely so than merely playacting a part.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.