| 192 | } |
| 193 | |
| 194 | Tr2StateMachineState* Tr2StateMachine::GetStateByName( const char* name ) const |
| 195 | { |
| 196 | for( auto it = begin( m_states ); it != end( m_states ); ++it ) |
| 197 | { |
| 198 | if( ( *it )->GetName() == name ) |
| 199 | { |
| 200 | return *it; |
| 201 | } |
| 202 | } |
| 203 | return nullptr; |
| 204 | } |
| 205 | |
| 206 | float Tr2StateMachine::GetMachineRunTime() const |
| 207 | { |
no test coverage detected