| 1756 | // private: |
| 1757 | |
| 1758 | void afxMagicMissile::create_splash(const Point3F& pos) |
| 1759 | { |
| 1760 | if (!mDataBlock || !mDataBlock->splash) |
| 1761 | return; |
| 1762 | |
| 1763 | MatrixF xfm = getTransform(); |
| 1764 | xfm.setPosition(pos); |
| 1765 | |
| 1766 | Splash* splash = new Splash(); |
| 1767 | splash->onNewDataBlock(mDataBlock->splash, false); |
| 1768 | splash->setTransform(xfm); |
| 1769 | splash->setInitialState(xfm.getPosition(), Point3F(0.0, 0.0, 1.0)); |
| 1770 | if (!splash->registerObject()) |
| 1771 | { |
| 1772 | delete splash; |
| 1773 | splash = NULL; |
| 1774 | } |
| 1775 | } |
| 1776 | |
| 1777 | void afxMagicMissile::get_launch_constraint_data(Point3F& pos, Point3F& vel) |
| 1778 | { |
nothing calls this directly
no test coverage detected