A simple generalized model of attack by predators and parasites