Cooperation and conflict in general evolutionary processes