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

Method SetStartStateByName

trinity/Tr2GStateAnimation.cpp:607–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605
606
607void Tr2GStateAnimation::SetStartStateByName( const std::string& name )
608{
609#if GrannyProductMajorVersion > 2 || ( GrannyProductMajorVersion == 2 && GrannyProductMinorVersion >= 11 )
610 m_state_machine->SetStartState( m_state_machine->GetStateByName( name.c_str() ) );
611#else
612 CCP_LOGERR( "SetStartStateByName: outdated Granny version" );
613#endif
614}
615
616bool Tr2GStateAnimation::ForceChangeToState( const std::string& name )
617{

Callers

nothing calls this directly

Calls 1

GetStateByNameMethod · 0.80

Tested by

no test coverage detected