| 15 | } |
| 16 | |
| 17 | bool 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 | |
| 39 | void Tr2StateMachineTransition::Link( const Tr2StateMachineState& state ) |
| 40 | { |
nothing calls this directly
no test coverage detected