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

Method drawPopulationDensity

MicropolisCore/src/MicropolisEngine/src/map.cpp:488–503  ·  view source on GitHub ↗

Draw population density overlay at small map */

Source from the content-addressed store, hash-verified

486
487/** Draw population density overlay at small map */
488void Micropolis::drawPopulationDensity()
489{
490 short x, y;
491
492 drawAll();
493 for (x = 0; x < WORLD_W; x += populationDensityMap.MAP_BLOCKSIZE) {
494 for (y = 0; y < WORLD_H; y += populationDensityMap.MAP_BLOCKSIZE) {
495 maybeDrawRect(
496 getCI(populationDensityMap.worldGet(x, y)),
497 x * 3,
498 y * 3,
499 3 * populationDensityMap.MAP_BLOCKSIZE,
500 3 * populationDensityMap.MAP_BLOCKSIZE);
501 }
502 }
503}
504
505
506void Micropolis::drawRateOfGrowth()

Callers

nothing calls this directly

Calls 2

drawAllFunction · 0.85
worldGetMethod · 0.80

Tested by

no test coverage detected