#include "simple_creature.h" /* The choose_prey method is where you will code your decision making for which prey to go for you will use the values passed to you in the nutrition, ease, extinction and previosly chosen vectors to help with your decision making @ param vector nutrition_rank - a vector showing the rankings of the nutrition of the prey, where 1 is most nutritious @ param vector ease_rank - a vector showing the rankings of ease of capture of the prey, where 1 is easiest to catch @ param vector extinction_value - a vector showing the extinction rating of the prey, where 2 is extinct, 1 is endangered, 0 is neither @ param vector previously_chosen - a vector showing the numbers of creatures who selected each type of prey in the previous time step @ return int - the index of the prey chosen by this creature in this time step */ int SimpleCreature::choose_prey(vector &nutrition_rank, vector &ease_rank, vector &extinction_value, vector &previously_chosen) { //your decision code will go here return 0; // currently just return first prey item every time } /* constructor method for SimpleCreature calls init_name() method and init_health() method which is inherited from predator.cpp @ param none */ SimpleCreature::SimpleCreature () { init_name(); init_health(); } /* init_name method sets the creature's name to Simple @ param none @ return none */ void SimpleCreature::init_name() { name = "Simple"; }