From PhysOrg:
To understand how animals experience the world and how they should be treated, people need to better understand their emotional lives. A new review of animal emotion suggests that, as in humans, emotions may tell animals about how dangerous or opportunity-laden their world is, and guide the choices that they make.
An animal living in a world where it is regularly threatened by predators will develop a negative emotion or 'mood', such as anxiety, whereas one in an environment with plenty of opportunities to acquire resources for survival will be in a more positive mood state. The researchers argue that these emotional states not only reflect the animal's experiences, they also help it decide how to make choices, especially in ambiguous situations, which could have good or bad outcomes. An animal in a negative state will benefit from adopting a safety-first, 'pessimistic' response to an ambiguous event — for example interpreting a rustle in the grass as signalling a predator – while an animal in a positive state will benefit from a more 'optimistic' response, interpreting it as signalling prey.
More here.