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

Method OnModified

trinity/Controllers/Tr2StateMachineTransition.cpp:17–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17bool Tr2StateMachineTransition::OnModified( Be::Var* value )
18{
19 if( !m_source )
20 {
21 return true;
22 }
23
24 if( IsMatch( value, m_condition ) )
25 {
26 m_evaluator.SetExpr( m_condition.c_str(), *m_source->GetStateMachine() );
27 if( m_source )
28 {
29 m_source->UpdateVariableMask();
30 }
31 }
32 else if( IsMatch( value, m_destinationName ) )
33 {
34 UpdateDestination();
35 }
36 return true;
37}
38
39void Tr2StateMachineTransition::Link( const Tr2StateMachineState& state )
40{

Callers

nothing calls this directly

Calls 4

IsMatchFunction · 0.85
SetExprMethod · 0.80
GetStateMachineMethod · 0.80
UpdateVariableMaskMethod · 0.80

Tested by

no test coverage detected