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

Method Start

trinity/Controllers/Tr2TimelineController.cpp:127–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void Tr2TimelineController::Start()
128{
129 ScopedBlockTrap blockTrap;
130
131 if( m_isActive )
132 {
133 Stop();
134 }
135 m_isActive = true;
136 m_lastUpdateTime = BeOS->GetCurrentFrameTime();
137
138 CcpAutoMutex lock( g_controllerMutex );
139
140 for( size_t i = 0; i < m_actions.size(); ++i )
141 {
142 auto action = m_actions[i];
143 auto& entry = m_entries[i];
144 if( InRange( m_time, entry ) && IsActionEnabled( i ) )
145 {
146 action->Start( *this );
147 }
148 }
149}
150
151void Tr2TimelineController::Stop()
152{

Callers 7

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

Calls 3

StopFunction · 0.85
InRangeFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected