* Push a position onto the position stack. * @param pos Position to push. * @pre Stack may not be full. */
| 196 | * @pre Stack may not be full. |
| 197 | */ |
| 198 | void Micropolis::pushPos(const Position &pos) |
| 199 | { |
| 200 | curMapStackPointer++; |
| 201 | assert(curMapStackPointer < MAX_TRAFFIC_DISTANCE + 1); |
| 202 | curMapStackXY[curMapStackPointer] = pos; |
| 203 | } |
| 204 | |
| 205 | |
| 206 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected