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

Method pushPos

MicropolisCore/src/MicropolisEngine/src/traffic.cpp:198–203  ·  view source on GitHub ↗

* Push a position onto the position stack. * @param pos Position to push. * @pre Stack may not be full. */

Source from the content-addressed store, hash-verified

196 * @pre Stack may not be full.
197 */
198void Micropolis::pushPos(const Position &pos)
199{
200 curMapStackPointer++;
201 assert(curMapStackPointer < MAX_TRAFFIC_DISTANCE + 1);
202 curMapStackXY[curMapStackPointer] = pos;
203}
204
205
206/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected