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

Method drawTrafficDensityMap

MicropolisCore/src/MicropolisEngine/src/map.cpp:545–562  ·  view source on GitHub ↗

Draw traffic density overlay at the small map */

Source from the content-addressed store, hash-verified

543
544/** Draw traffic density overlay at the small map */
545void Micropolis::drawTrafficDensityMap()
546{
547 short x;
548 short y;
549
550 drawLilTransMap();
551
552 for (x = 0; x < WORLD_W; x += trafficDensityMap.MAP_BLOCKSIZE) {
553 for (y = 0; y < WORLD_H; y += trafficDensityMap.MAP_BLOCKSIZE) {
554 maybeDrawRect(
555 getCI(trafficDensityMap.worldGet(x, y)),
556 x * 3,
557 y * 3,
558 3 * trafficDensityMap.MAP_BLOCKSIZE,
559 3 * trafficDensityMap.MAP_BLOCKSIZE);
560 }
561 }
562}
563
564
565/** Draw pollution overlay at the small map */

Callers

nothing calls this directly

Calls 1

worldGetMethod · 0.80

Tested by

no test coverage detected