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

Method Link

trinity/Controllers/Tr2StateMachineTransition.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void Tr2StateMachineTransition::Link( const Tr2StateMachineState& state )
40{
41 Unlink();
42
43 m_source = &state;
44 if( m_source->GetStateMachine() )
45 {
46 UpdateDestination();
47 }
48 m_evaluator.SetExpr( m_condition.c_str(), *m_source->GetStateMachine() );
49}
50
51void Tr2StateMachineTransition::Unlink()
52{

Callers

nothing calls this directly

Calls 2

GetStateMachineMethod · 0.80
SetExprMethod · 0.80

Tested by

no test coverage detected