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

Method GetNextState

trinity/Controllers/Tr2StateMachineState.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246Tr2StateMachineState* Tr2StateMachineState::GetNextState() const
247{
248 for( auto it = begin( m_transitions ); it != end( m_transitions ); ++it )
249 {
250 if( ( *it )->CanActivate( 0xffffffffffffffffull ) && ( *it )->GetDestination() )
251 {
252 return ( *it )->GetDestination();
253 }
254 }
255 return nullptr;
256}
257
258const Tr2StateMachine* Tr2StateMachineState::GetStateMachine() const
259{

Callers

nothing calls this directly

Calls 4

CanActivateMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
GetDestinationMethod · 0.45

Tested by

no test coverage detected