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

Method makeTraffic

MicropolisCore/src/MicropolisEngine/src/traffic.cpp:106–112  ·  view source on GitHub ↗

* Find a connection over a road from position \a x \a y to a specified zone type. * @param x Start x position of the attempt * @param y Start y position of the attempt * @param dest Zone type to go to. * @return \c 1 if connection found, \c 0 if not found, * \c -1 if no connection to road found. */

Source from the content-addressed store, hash-verified

104 * \c -1 if no connection to road found.
105 */
106short Micropolis::makeTraffic(int x, int y, ZoneType dest)
107{
108 Position startPos;
109 startPos.posX = x;
110 startPos.posY = y;
111 return makeTraffic(startPos, dest);
112}
113
114
115/**

Callers 1

generateTrafficMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected