| 1433 | } |
| 1434 | |
| 1435 | void ShapeBase::setControllingObject(ShapeBase* obj) |
| 1436 | { |
| 1437 | if (obj) { |
| 1438 | setProcessTick(false); |
| 1439 | // Even though we don't processTick, we still need to |
| 1440 | // process after the controller in case anyone is mounted |
| 1441 | // on this object. |
| 1442 | processAfter(obj); |
| 1443 | } |
| 1444 | else { |
| 1445 | setProcessTick(true); |
| 1446 | clearProcessAfter(); |
| 1447 | // Catch the case of the controlling object actually |
| 1448 | // mounted on this object. |
| 1449 | if (mControllingObject->mMount.object == this) |
| 1450 | mControllingObject->processAfter(this); |
| 1451 | } |
| 1452 | mControllingObject = obj; |
| 1453 | } |
| 1454 | |
| 1455 | ShapeBase* ShapeBase::getControlObject() |
| 1456 | { |
no test coverage detected