| 401 | |
| 402 | |
| 403 | void Micropolis::simLoop(bool doSim) |
| 404 | { |
| 405 | if (heatSteps) { |
| 406 | int j; |
| 407 | |
| 408 | for (j = 0; j < heatSteps; j++) { |
| 409 | simHeat(); |
| 410 | } |
| 411 | |
| 412 | moveObjects(); |
| 413 | simRobots(); |
| 414 | |
| 415 | newMap = 1; |
| 416 | |
| 417 | } else { |
| 418 | if (doSim) { |
| 419 | simFrame(); |
| 420 | } |
| 421 | |
| 422 | moveObjects(); |
| 423 | simRobots(); |
| 424 | } |
| 425 | |
| 426 | simLoops++; |
| 427 | } |
| 428 | |
| 429 | |
| 430 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected