If you hadn't been able to move, I'd say you were in a sleep paralysis.

But since you are able to sit up and stuff, I say it's just like any other dream.

Or hallucinations.