| 316 | } |
| 317 | |
| 318 | void PathShape::pushFront(CameraSpline::Knot *knot) |
| 319 | { |
| 320 | // Make room at the front |
| 321 | if (mNodeCount == NodeWindow) |
| 322 | delete mSpline.remove(mSpline.getKnot(mNodeCount)); |
| 323 | else |
| 324 | mNodeCount++; |
| 325 | mNodeBase--; |
| 326 | |
| 327 | // Fill in the new node |
| 328 | mSpline.push_front(knot); |
| 329 | setMaskBits(WindowMask); |
| 330 | |
| 331 | // Make sure the position doesn't fall off |
| 332 | if (mPosition > mNodeBase + (NodeWindow - 1)) { |
| 333 | mPosition = mNodeBase + (NodeWindow - 1); |
| 334 | setMaskBits(PositionMask); |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | void PathShape::popFront() |
| 339 | { |
no test coverage detected