Yes, you just had a nightmare, but it wasn't all a dream, there was also a part of reality. A thief came to the house just now and knocked you unconscious. The thief was driven away by me. You may have been frightened and combined the content of the dream with reality....