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

Method evalCom

MicropolisCore/src/MicropolisEngine/src/zone.cpp:883–894  ·  view source on GitHub ↗

* Compute evaluation of a commercial zone. * @param traf Result if traffic attempt. * @return Evaluation value of the commercial zone. */

Source from the content-addressed store, hash-verified

881 * @return Evaluation value of the commercial zone.
882 */
883short Micropolis::evalCom(const Position &pos, int traf)
884{
885 short Value;
886
887 if (traf < 0) {
888 return -3000;
889 }
890
891 Value = comRateMap.worldGet(pos.posX, pos.posY);
892
893 return Value;
894}
895
896
897/**

Callers

nothing calls this directly

Calls 1

worldGetMethod · 0.80

Tested by

no test coverage detected