* Push position \a pos onto the power stack if there is room. * @param pos Position to push. */
| 161 | * @param pos Position to push. |
| 162 | */ |
| 163 | void Micropolis::pushPowerStack(const Position &pos) |
| 164 | { |
| 165 | if (powerStackPointer < (POWER_STACK_SIZE - 2)) { |
| 166 | powerStackPointer++; |
| 167 | powerStackXY[powerStackPointer] = pos; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | |
| 172 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected