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

Method drawCrimeRateMap

MicropolisCore/src/MicropolisEngine/src/map.cpp:586–602  ·  view source on GitHub ↗

Draw crime overlay at the small map */

Source from the content-addressed store, hash-verified

584
585/** Draw crime overlay at the small map */
586void Micropolis::drawCrimeRateMap()
587{
588 short x, y;
589
590 drawAll();
591
592 for (x = 0; x < WORLD_W; x += crimeRateMap.MAP_BLOCKSIZE) {
593 for (y = 0; y < WORLD_H; y += crimeRateMap.MAP_BLOCKSIZE) {
594 maybeDrawRect(
595 getCI(crimeRateMap.worldGet(x, y)),
596 x * 3,
597 y * 3,
598 3 * crimeRateMap.MAP_BLOCKSIZE,
599 3 * crimeRateMap.MAP_BLOCKSIZE);
600 }
601 }
602}
603
604
605void Micropolis::drawLandValueMap()

Callers

nothing calls this directly

Calls 2

drawAllFunction · 0.85
worldGetMethod · 0.80

Tested by

no test coverage detected