The vehicle.. just run them over! No, just kidding: obviously, the pedestrian has the right of way. If you hit a pedestrian with your car you will quickly realize they have the right of way whether they're being idiots or not. If you jump in front of traffic, you have the right to continue without cars running you over.
The general law of the road is that anything that can be harmed by a vehicle has the right of way, of course including animals.