MCPcopy Create free account
hub / github.com/SimHacker/micropolis / simLoop

Method simLoop

MicropolisCore/src/MicropolisEngine/src/main.cpp:403–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401
402
403void 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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected