| 1624 | } |
| 1625 | |
| 1626 | void afxShapeConstraint::resetAnimation(U32 tag) |
| 1627 | { |
| 1628 | if (mClip_tag == 0) |
| 1629 | return; |
| 1630 | |
| 1631 | if (!mShape) |
| 1632 | return; |
| 1633 | |
| 1634 | if (mShape->isClientObject()) |
| 1635 | { |
| 1636 | mShape->restoreAnimation(tag); |
| 1637 | } |
| 1638 | else |
| 1639 | { |
| 1640 | AIPlayer* ai_player = dynamic_cast<AIPlayer*>(mShape); |
| 1641 | if (ai_player) |
| 1642 | ai_player->restartMove(tag); |
| 1643 | else |
| 1644 | mShape->restoreAnimation(tag); |
| 1645 | } |
| 1646 | |
| 1647 | if ((tag & 0x80000000) == 0 && tag == mClip_tag) |
| 1648 | mClip_tag = 0; |
| 1649 | } |
| 1650 | |
| 1651 | U32 afxShapeConstraint::lockAnimation() |
| 1652 | { |
nothing calls this directly
no test coverage detected