+const char *AIControl::enumerate_controls(unsigned index) const
+{
+ if(index==0)
+ return target_speed.name.c_str();
+ else
+ {
+ for(--index;; ++index)
+ {
+ const char *ret = next_ctrl->enumerate_controls(index-1);
+ if(!ret || ret!=target_speed.name)
+ return ret;
+ }
+ }
+}
+