A G protein-based model of adaptation in Dictyostelium discoideum.