JIC-CSB / kilombo

Kilobot simulator in C
Other
44 stars 16 forks source link

Setup callback #4

Closed mhinsch closed 9 years ago

mhinsch commented 9 years ago

This a) adds a callback function that can be set by the user to do global setup and b) moves the per-bot setup out of init_all_bots->bot_main->kilo_init a bit further down into main so that it is actually called after the global setup. This shouldn't (hopefully) cause problems since there is only parameter settings code between the old the new position.