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

Method Stop

trinity/Controllers/Tr2TimelineController.cpp:151–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void Tr2TimelineController::Stop()
152{
153 if( !m_isActive )
154 {
155 return;
156 }
157 CcpAutoMutex lock( g_controllerMutex );
158 for( size_t i = 0; i < m_actions.size(); ++i )
159 {
160 auto action = m_actions[i];
161 auto& entry = m_entries[i];
162 if( InRange( m_time, entry ) && IsActionEnabled( i ) )
163 {
164 action->Stop( *this );
165 }
166 }
167 m_isActive = false;
168 m_time = 0;
169}
170
171void Tr2TimelineController::Update( float normalizedUpdateFrequency )
172{

Callers 7

UpdateMethod · 0.45
SetActionStartTimeMethod · 0.45
SetActionEndTimeMethod · 0.45
SetActionTrackIDMethod · 0.45
RemoveActionMethod · 0.45
EnableTrackMethod · 0.45
SetTimeMethod · 0.45

Calls 2

InRangeFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected