MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init_missile_s

Method init_missile_s

Engine/source/afx/afxMagicSpell.cpp:1579–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577//
1578
1579void afxMagicSpell::init_missile_s(afxMagicMissileData* mm_db)
1580{
1581 if (mMissile)
1582 clearNotify(mMissile);
1583
1584 // create the missile
1585 mMissile = new afxMagicMissile(true, false);
1586 mMissile->setSubstitutionData(this, ranking);
1587 mMissile->setDataBlock(mm_db);
1588 mMissile->setChoreographer(this);
1589 if (!mMissile->registerObject())
1590 {
1591 Con::errorf("afxMagicSpell: failed to register missile instance.");
1592 delete mMissile;
1593 mMissile = NULL;
1594 }
1595
1596 if (mMissile)
1597 {
1598 deleteNotify(mMissile);
1599 registerForCleanup(mMissile);
1600 }
1601}
1602
1603void afxMagicSpell::launch_missile_s()
1604{

Callers

nothing calls this directly

Calls 6

registerForCleanupFunction · 0.85
setDataBlockMethod · 0.80
errorfFunction · 0.50
setSubstitutionDataMethod · 0.45
setChoreographerMethod · 0.45
registerObjectMethod · 0.45

Tested by

no test coverage detected