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

Method drawPollutionMap

MicropolisCore/src/MicropolisEngine/src/map.cpp:566–582  ·  view source on GitHub ↗

Draw pollution overlay at the small map */

Source from the content-addressed store, hash-verified

564
565/** Draw pollution overlay at the small map */
566void Micropolis::drawPollutionMap()
567{
568 short x, y;
569
570 drawAll(view);
571
572 for (x = 0; x < WORLD_W; x += pollutionDensityMap.MAP_BLOCKSIZE) {
573 for (y = 0; y < WORLD_H; y += pollutionDensityMap.MAP_BLOCKSIZE) {
574 maybeDrawRect(
575 getCI(10 + pollutionDensityMap.worldGet(x, y)),
576 x * 3,
577 y * 3,
578 3 * pollutionDensityMap.MAP_BLOCKSIZE,
579 3 * pollutionDensityMap.MAP_BLOCKSIZE);
580 }
581 }
582}
583
584
585/** Draw crime overlay at the small map */

Callers

nothing calls this directly

Calls 2

drawAllFunction · 0.85
worldGetMethod · 0.80

Tested by

no test coverage detected