* Get number of vehicles of a specific engine ID. * @param engine Engine ID. * @returns number of vehicles of this engine ID. */
| 66 | * @returns number of vehicles of this engine ID. |
| 67 | */ |
| 68 | uint16_t GroupStatistics::GetNumEngines(EngineID engine) const |
| 69 | { |
| 70 | auto found = this->num_engines.find(engine); |
| 71 | if (found != std::end(this->num_engines)) return found->second; |
| 72 | return 0; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Returns the GroupStatistics for a specific group. |
no test coverage detected