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

Method pullPos

MicropolisCore/src/MicropolisEngine/src/traffic.cpp:211–216  ·  view source on GitHub ↗

* Pull top-most position from the position stack. * @return Pulled position. * @pre Stack may not be empty (curMapStackPointer > 0) */

Source from the content-addressed store, hash-verified

209 * @pre Stack may not be empty (curMapStackPointer > 0)
210 */
211Position Micropolis::pullPos()
212{
213 assert(curMapStackPointer > 0);
214 curMapStackPointer--;
215 return curMapStackXY[curMapStackPointer + 1];
216}
217
218
219/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected