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

Method PlayCurveSet

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3406–3437  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Play the curve set with the appropriate name --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3404// Play the curve set with the appropriate name
3405// --------------------------------------------------------------------------------
3406void EveSpaceObject2::PlayCurveSet( const std::string& name, const std::string& rangeName )
3407{
3408 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
3409 {
3410 if( ( *it )->GetName() == name )
3411 {
3412 if( rangeName.empty() )
3413 {
3414 ( *it )->ResetTimeRange();
3415 ( *it )->Play();
3416 }
3417 else
3418 {
3419 ( *it )->PlayTimeRange( rangeName.c_str() );
3420 }
3421 }
3422 }
3423 for( auto childIt = m_children.begin(); childIt != m_children.end(); childIt++ )
3424 {
3425 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) )
3426 {
3427 owner->PlayCurveSet( name, rangeName );
3428 }
3429 }
3430 for( auto childIt = m_effectChildren.begin(); childIt != m_effectChildren.end(); childIt++ )
3431 {
3432 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) )
3433 {
3434 owner->PlayCurveSet( name, rangeName );
3435 }
3436 }
3437}
3438
3439// --------------------------------------------------------------------------------
3440// Description:

Callers

nothing calls this directly

Calls 7

emptyMethod · 0.80
ResetTimeRangeMethod · 0.80
PlayTimeRangeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45
PlayMethod · 0.45

Tested by

no test coverage detected