MCPcopy Create free account
hub / github.com/carbonengine/trinity / Initialize

Method Initialize

trinity/Eve/SpaceObject/EveMissile.cpp:46–58  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Is called right after the redfile finishes loading. Here we disable emitting particles of the trails. This is because there is slight delay to the actual ejection of the missile in during that timeperiod we don't want so see trail particles. ----------------------------------------------------------------

Source from the content-addressed store, hash-verified

44// so see trail particles.
45// --------------------------------------------------------------------------------
46bool EveMissile::Initialize()
47{
48 EveSpaceObject2::Initialize();
49
50 // at this point we just finished loading the underlying redfile, now
51 // make 100% sure perticle emitting on all the warheads is disabled
52 for( PEveMissileWarheadVector::const_iterator it = m_warheads.begin(); it != m_warheads.end(); ++it )
53 {
54 ( *it )->EnableParticleEmitting( false );
55 }
56
57 return true;
58}
59
60// --------------------------------------------------------------------------------
61// Description:

Callers

nothing calls this directly

Calls 4

InitializeFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected