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

Method pullPowerStack

MicropolisCore/src/MicropolisEngine/src/power.cpp:177–182  ·  view source on GitHub ↗

* Pull a position from the power stack. * @return Pulled position. * @pre Stack must be non-empty (powerStackPointer > 0). */

Source from the content-addressed store, hash-verified

175 * @pre Stack must be non-empty (powerStackPointer > 0).
176 */
177Position Micropolis::pullPowerStack()
178{
179 assert(powerStackPointer > 0);
180 powerStackPointer--;
181 return powerStackXY[powerStackPointer + 1];
182}
183
184
185////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected