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

Method getCI

MicropolisCore/src/MicropolisEngine/src/map.cpp:466–485  ·  view source on GitHub ↗

if

Source from the content-addressed store, hash-verified

464 } // if
465 } // if
466 DRAW_END
467}
468
469
470short Micropolis::getCI(short x)
471{
472 if (x < 50) {
473 return VAL_NONE;
474 }
475 if (x < 100) {
476 return VAL_LOW;
477 }
478 if (x < 150) {
479 return VAL_MEDIUM;
480 }
481 if (x < 200) {
482 return VAL_HIGH;
483 }
484 return VAL_VERYHIGH;
485}
486
487/** Draw population density overlay at small map */
488void Micropolis::drawPopulationDensity()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected