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

Method PickFiringOrigin

trinity/Eve/SpaceObject/EveSwarm.cpp:1058–1061  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Select which fighter is the origin of firing effects --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1056// Select which fighter is the origin of firing effects
1057// --------------------------------------------------------------------------------
1058void EveSwarm::PickFiringOrigin()
1059{
1060 m_firingIndex = TriRandInt( m_count );
1061}
1062
1063// --------------------------------------------------------------------------------
1064// Description:

Callers

nothing calls this directly

Calls 1

TriRandIntFunction · 0.85

Tested by

no test coverage detected