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

Method pushPowerStack

MicropolisCore/src/MicropolisEngine/src/power.cpp:163–169  ·  view source on GitHub ↗

* Push position \a pos onto the power stack if there is room. * @param pos Position to push. */

Source from the content-addressed store, hash-verified

161 * @param pos Position to push.
162 */
163void Micropolis::pushPowerStack(const Position &pos)
164{
165 if (powerStackPointer < (POWER_STACK_SIZE - 2)) {
166 powerStackPointer++;
167 powerStackXY[powerStackPointer] = pos;
168 }
169}
170
171
172/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected