The answer would be personification. Personification is a kind of metaphor and a shared literary tool. It is when you allocate the abilities of a person to somewhat that isn't human or that isn't even animated, like wildlife or feelings and emotions.