| 82 | } |
| 83 | |
| 84 | void Tr2StateMachine::Link( Tr2Controller& controller ) |
| 85 | { |
| 86 | Unlink(); |
| 87 | |
| 88 | m_controller = &controller; |
| 89 | for( auto it = begin( m_states ); it != end( m_states ); ++it ) |
| 90 | { |
| 91 | ( *it )->Link( *this ); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void Tr2StateMachine::Unlink( UnlinkReason reason ) |
| 96 | { |
no test coverage detected