Last night when I had really weird dreams I was wondering......What can affect dreams?

Does staying up later than normal (I stayed up 'til 2:00) affects dreams? I still got enough sleep, though.

Can what you watch right before you go to sleep affect dreams? (I was watching X-files, Heh..xD)


And...Lastly.....Can what you eat affect your dreams?

Does caffine affect dreaming (Other than keeping you awake) at all?