In what condition did your friend find you when he visited your house?
Other people, however, may have a different point of view to offer.
This is a metaphor.
Similies use "as" or "like" to explicitly denote a comparison and personifications give human-like characteristics to animals, objects, or concepts.
Hope this helps! :)