| 279 | } |
| 280 | |
| 281 | void Tr2Controller::HandleEvent( const char* eventName ) |
| 282 | { |
| 283 | if( !m_isActive ) |
| 284 | { |
| 285 | return; |
| 286 | } |
| 287 | for( auto it = begin( m_eventHandlers ); it != end( m_eventHandlers ); ++it ) |
| 288 | { |
| 289 | auto handler = *it; |
| 290 | if( strcmp( eventName, handler->GetName() ) == 0 ) |
| 291 | { |
| 292 | handler->Execute( *this ); |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | IRoot* Tr2Controller::GetOwner() const |
| 298 | { |
no test coverage detected